This content has been marked as final.
Show 3 replies
-
1. Re: strange behaviour in <ejb-local-ref>
jonlee Nov 25, 2003 6:24 PM (in response to pangj)Did you define a jboss.xml with the following?
<enterprise-beans> <session> <ejb-name>ejb/VATAddress</ejb-name> <jndi-name>ejb/remote/VATAddress</jndi-name> <local-jndi-name>ejb/local/VATAddress</local-jndi-name>
There are two bindings - one for each home. Perhaps look at http://www.amitysolutions.com.au/documents/JBossJNDI-technote.pdf. It gives a rough description of the mapping JBoss uses. -
2. Re: strange behaviour in <ejb-local-ref>
pangj Nov 26, 2003 4:31 AM (in response to pangj)Thanks for the reply jonlee,
I have defined <jndi-name> and <local-jndi-name> elements in jboss.xml, but with naming convention different to yours. But naming convention shouldn't be a problem, should it? Hmm...
<enterprise-beans>
<ejb-name>ejb/VATAddress</ejb-name>
<jndi-name>ejb/VATAddress</jndi-name>
<local-jndi-name>ejb/VATAddressLocal</local-jndi-name> -
3. Re: strange behaviour in <ejb-local-ref>
jonlee Nov 26, 2003 7:21 PM (in response to pangj)Naming convention shouldn't be an issue. But you are binding two different things. If you want both local and remote bindings, you need to declare the remote and local interfaces in ejb-jar as well.
In the jboss.xml mapping:
One JNDI entry is for the local interfaces - JBoss works this out.
The other JNDI entry is for the remote interfaces.
e.g.+- ejb (class: org.jnp.interfaces.NamingContext) | +- amity (class: org.jnp.interfaces.NamingContext) | | +- general (class: org.jnp.interfaces.NamingContext) | | | +- local (class: org.jnp.interfaces.NamingContext) | | | | +- ListManager (proxy: $Proxy107 implements interface com.amity.general.listmanager.ListManagerLocalHome) | | | +- remote (class: org.jnp.interfaces.NamingContext) | | | | +- ListManager (proxy: $Proxy109 implements interface com.amity.general.listmanager.ListManagerHome,interface javax.ejb.Handle)