Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
28. Aug 2008, 17:18 CET | Link

Unlike JBoss, Oracle WebLogic needs EJBs listed discretely in /resources/META-INF/ejb-jar.xml. Session beans need to also be declared within /resources/WEB-INF/web.xml.

Is there any way to automate the addition and updates to these files to reflect the EJBs and beans that are contained in your project either during the development and/or build cycle?

Could this be accomplished using Ant to populate add, for example...

<interceptor-binding> 
      <ejb-name>#{ejb-name}/ejb-name>
      <interceptor-class >org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
   </interceptor-binding>

...for each EJB that is found in the project?

If you have any information or resources you could point me to I would be much appreciative.

Thanks.

2 Replies:
28. Aug 2008, 20:33 CET | Link

You can use an ant xmltask to update these files. Have a look here.

Rating:  * * * * *
28. Aug 2008, 23:04 CET | Link

Thanks for the reply - this looks to be exactly what we need.