Reputation: 3325
Sometimes, configurations or declarations need to be done in the EJB-deployment descriptor, the ejb-jar.xml file.
When there is no ejb-client jar-file, ejb-jar.xml is located in the META-INF of the module:
Module-root:
---> META-INF
- ejb-jar.xml
- ...
but if a ejb-jar client gets added, where will the ejb-jar.xml be located? In the META-INF of the client:
Module-root:
---> META-INF
- // here nothing
- ...
ejb-client-Root:
---> META-INF
- ejb-jar.xml // here something
- ...
or will the EJB-Module keep the ejb-jar.file as usual?
thanks!!!
Upvotes: 0
Views: 1263
Reputation: 33956
The ejb-jar.xml
should always go in the EJB module JAR, colocated with the bean implementation (<ejb-class/>
) .class files. It's possible to have a separate EJB module that is also a client, in which case you might have two ejb-jar.xml: one in the "service" JAR and one in the "client" jar.
Upvotes: 2