6 Replies Latest reply on Jun 3, 2010 1:16 PM by balazska

    Automating ejb-jar.xml and web.xml


      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.