有时,配置或声明需要在EJB-deployment描述符ejb-jar.xml文件中完成。
当没有ejb客户端jar文件时,ejb-jar.xml位于模块的META-INF中:
Module-root:
---> META-INF
- ejb-jar.xml
- ...但是,如果添加了ejb-jar客户端,ejb-jar.xml将位于何处?在客户端的META-INF中:
Module-root:
---> META-INF
- // here nothing
- ...
ejb-client-Root:
---> META-INF
- ejb-jar.xml // here something
- ...或者EJB-Module会照常保留ejb-jar.file吗?
谢谢!
发布于 2012-09-09 23:56:49
ejb-jar.xml应该始终放在EJB module JAR中,与bean实现(<ejb-class/>) .class文件放在同一位置。可以有一个单独的EJB模块同时也是一个客户端,在这种情况下,您可能有两个ejb-jar.xml:一个在“服务”JAR中,另一个在“客户端”jar中。
https://stackoverflow.com/questions/12318609
复制相似问题