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
LocalEJBReceiverPreferringDeploymentNodeSelectorwith my own implementation and noticed that each node was aware only of itself. That is, the
eligibleNodesarrays 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.