我有一个耳朵文件,在这个耳朵内部,我的网络应用程序有战争。 现在我需要通过POJO查找EJB的本地接口(这是一个在jasperreports中使用的scriptlet)。
我想要使用的EJB有两个jar(这是第三方api) 一个服务接口jar,其中定义了本地接口和其他实现类 接口jar名称是:xyz-interface.jar 和实现jar名称是xyz.jar
现在在我的生成pom.xml中,我已完成以下配置
<ejbModule>
<groupId>parentpackage</groupId>
<artifactId>xyz</artifactId>
<bundleDir>/</bundleDir>
</ejbModule>
<jarModule>
<groupId>parentpackage</groupId>
<artifactId>xyz-interface</artifactId>
<bundleDir>APP-INF/lib</bundleDir>
</jarModule>
<dependency>
<groupId>parentpackage</groupId>
<artifactId>xyz</artifactId>
<version>${cdmr.version}</version>
<type>ejb</type>
<scope>provided</scope>
</dependency>
In the web.xml My configuration is like
<ejb-local-ref>
<ejb-ref-name>ejb/local/xyzEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>package.xyz</local>
<ejb-link>xyzEJB</ejb-link>