[jboss-user] [Clustering/JBoss] - Re: Remote cluster ejb access

mancinis do-not-reply at jboss.com
Tue Jun 24 10:23:38 EDT 2008


Hi,

I've changed the partitions names and now it's working fine, thanks for your help.
Sorry for the delay in my feedback but I tested the solution only yesterday.

I've only another doubt, as I told before in my configuration I've a jboss cluster composed by two nodes (node1 and node2) and 
a remote jboss client.
In the jboss.xml of the ejbs deployed on the client node I've the following reference:

<ejb-name>ABean</ejb-name>
<jndi-name>ejb/ABean</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/LucyServicesBeanRemote</ejb-ref-name>
<jndi-name>jnp://node1:1100/ejb/LucyServicesBean</jndi-name>
</ejb-ref> 

I've verified that the load balancing is working and that failover is working if node1 or node2 stops. 
But if 'node1' is stopped when the client is doing the first lookup (for example the jboss client starts with node1 stopped), obviously
I receive an exception.
Is there a way to list all the remote cluster nodes in the jboss.xml of the client ? 
for example something like
<jndi-name>jnp://node1:1100/ejb/LucyServicesBean, jnp://node2:1100/ejb/LucyServicesBean</jndi-name> 

(as I can do when I write a standalone client jndiProps.setProperty(Context.PROVIDER_URL, "jnp://node1:1100, jnp://node2:1100") )


Regards

Stefano Mancini 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160246#4160246

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160246



More information about the jboss-user mailing list