-
1. Re: Load-balancing EJB calls from an EJB client
jaikiran May 4, 2014 11:37 AM (in response to dejanm)1 of 1 people found this helpfulHi Dejan, take a look at this post which explains the behaviour and how you can configure it https://community.jboss.org/message/758251#758251
-
2. Re: Re: Load-balancing EJB calls from an EJB client
dejanm May 4, 2014 1:33 PM (in response to jaikiran)Thank you for the prompt reply. I tried using the jboss-ejb-client.xml file, but my configuration was ignored - the provided object was never called. Then I replaced
LocalEJBReceiverPreferringDeploymentNodeSelector
with my own implementation and noticed that each node was aware only of itself. That is, theeligibleNodes
arrays always contains exactly 1 element - the host node. So the end result is the same.I'm using JBoss EAP 6.1.
Btw. once the cluster is started, the master node outputs:
[org.jboss.as.clustering] (Incoming-1,shared=udp) JBAS010225: New cluster view for partition ejb (id: 1, delta: 1, merge: false) : [master:test-master/ejb, comp2:test-slave/ejb]
On the slave node I see:
INFO [org.jboss.as.clustering] (MSC service thread 1-4) JBAS010238: Number of cluster members: 2
So the servers are aware of each other.
-
3. Re: Load-balancing EJB calls from an EJB client
wdfink May 4, 2014 4:51 PM (in response to dejanm)How your jboss-ejb-client.xml look like? Did you see any problems with the remoting connections within the logfile?
Maybe this post helps Re: JBOSS AS 7.2 Remote EJB Lookup