Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
rushan(a)technodom.kz
17 years, 10 months
[Clustering/JBoss] - Remote cluster ejb access
by mancinis
Hi,
I've a ear application deployed in a jboss cluster with two nodes, the application contains some stateless session beans.
I wish to call this ejbs from another ear application deployed in another jboss cluster and from an application deployed
in a standalone jboss instance (using the 'all' configuration).
My problem is how to configure the remote references in the jboss.xml files.
Usually (without any cluster involved) I use a configuration like this
....
<ejb-name>ABean</ejb-name>
<jndi-name>ejb/ABean</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/LucyServicesBeanRemote</ejb-ref-name>
<jndi-name>jnp://remotehost1:1099/ejb/LucyServicesBean</jndi-name>
</ejb-ref>
....
With this configuration all works fine but I wish to use HAJNDI to benefit of the cluster features.
I've tried something like following:
....
<ejb-name>ABean</ejb-name>
<jndi-name>ejb/ABean</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/LucyServicesBeanRemote</ejb-ref-name>
<jndi-name>jnp://remotehost1:1100/ejb/LucyServicesBean</jndi-name>
</ejb-ref>
....
and
...
<ejb-name>ABean</ejb-name>
<jndi-name>ejb/ABean</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/LucyServicesBeanRemote</ejb-ref-name>
<jndi-name>ejb/LucyServicesBean</jndi-name>
</ejb-ref>
...
modifying the jndi.properties to include
java.naming.provider.url=remotehost1:1100,remotehost2:1100
but with no success, I always have the exception NameNotBound, any ideas ?
Thanks
Stefano Mancini
mancinis(a)computer.org
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155163#4155163
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155163
17 years, 10 months