我正在从 Glassfish 转向 JBoss 进行本地开发。我对 CORBA 和 Remote-Beans 不是很有经验。如何在 JBoss AS 7.1.1 中配置以下 GF-Configuration?
GF的配置:
<external-jndi-resource res-type="javax.naming.Reference" description="" jndi-name="ejb/DocumentServiceInvocation" factory-class="com.sun.jndi.cosnaming.CNCtxFactory" jndi-lookup-name="ejb/DocumentServiceInvocation">
<property name="java.naming.provider.url" value="corbaname::server01:9812,:server01:9813/NameServiceServerRoot"></property>
</external-jndi-resource>
和...
<servers>
<server name="server" config-ref="server-config">
...
<resource-ref ref="ejb/DocumentServiceInvocation"></resource-ref>
</server>
</servers>
我的 web.xml:
<ejb-ref>
<ejb-ref-name>ejb/DocumentServiceInvocation</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>mypackage.DocumentServiceInvocationHome</home>
<remote>mypackage.DocumentServiceInvocationRemote</remote>
</ejb-ref>