I've got a local jboss setup with 2 top level deployments
A thirth EJB (serviceEJB) is running on a remote service. When I try to lookup my remote service from my war is is pickup nice and smooth but I can't lookup the serviceEJB from the ear (myEar). Resulting in a 'No EJB receiver available for handling [appName:referentie-component-ear,modulename:referentie-component-ejb,distinctname:]
When starting my local jboss setup the jboss-ejb-client.xml the remote connection is setup.
15:25:23,758 INFO [org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver] (MSC service thread 1-1) Successful version handshake completed for receiver context EJBReceiverContext
on channel Channel ID baa352ab (outbound) of Remoting connection 4a43dc54 to DMP-MO-FSC2/126.96.36.199:4447
But when my webapp calls MyEJB which calls the ServiceEJB 'No EJB receiver available' error. The remote connection is setup according: https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance
It looks like only one (the war) top level deployment can setup a remote connection.