【发布时间】:2014-07-29 09:38:28
【问题描述】:
我正在尝试从我的耳朵连接到位于 weblogic 中的公共库中的 EJB。问题是当我在 weblogic 上启动应用程序时,我得到一个 classNotFoundException 并且指定的类是 ejb 接口。如果我将 ejb 添加到我的耳朵,那么我可以毫无问题地连接到它,但是当引用 CommonJars(库名称)时,我得到了那个错误。
<library-ref>
<library-name>CommonJars</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
<exact-match>true</exact-match>
</library-ref>
这就是我引用图书馆的方式。
<bean id="ExampleServiceEJB" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean">
<property name="jndiName" value="something.ejb.aham.ExampleService#com.something.something.that.job.ExampleService" />
<property name="businessInterface" value="com.something.something.that.job.ExampleService" />
</bean>
这就是我连接到 ejb 的方式(是的,我使用的是 spring)。
【问题讨论】:
标签: java spring jakarta-ee weblogic