java ee 6 - Precedence of EJB Deployment Descriptors -


if have ejb packaged in war because exposed rest web service, according this link, need have ejb-*.xml files @ root of web-inf directory. current environment websphere 8.5 , ejb 3.1

if later add multiple ejbs ( in separate ejb projects ) in same application , define deployment descriptors in respective projects, seem ignored. appears of descriptors should defined in descriptors in web-inf directory - or in other words, seems should augment descriptors in web-inf directory ejbs defined separate projects.

is how needs or missing forcing me this? not find documentation explaining part.

more details: how application.xml looks like

<?xml version="1.0" encoding="utf-8"?> <application xmlns="http://xmlns.jcp.org/xml/ns/javaee"  xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"  xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd"  version="7"> <display-name>myapp</display-name> <module id="module_1395346343165">     <web>         <web-uri>myweb.war</web-uri>         <context-root>myapp</context-root>     </web>  </module>  <module id="module_1395346304194">     <ejb>ejb1.jar</ejb>   </module>  <module id="module_1424684968934">     <ejb>ejb2.jar</ejb>  </module>  <module id="module_1431010943758">     <ejb>ejb3.jar</ejb>  </module> </application> 

the ejb1 1 live in webapp. other two, ejb2 , ejb3 separate ejb projects supposed in ear's root.

for ejbs in war module, files go in web-inf, .ear!/myweb.war!/ejb-jar.xml, .ear!/myweb.war!/ibm-ejb-jar-bnd.xml, etc.

for ejbs in separator ejb modules outside war, files go in meta-inf. so, .ear!/ejb1.jar!/meta-inf/ejb-jar.xml, .ear!/ejb1.jar!/meta-inf/ibm-ejb-jar-bnd.xml, etc.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -