What does it really mean that “No EJBReceiver” is available?
The client context will be initialized by the jboss-ejb-client.properties and/or the InitialContext. In fact for both there is a list of available server-connections.
If you do a lookup(...) the client create a Proxy based on the Remote interface (notice there is no server access as this was in previous versions!)
If you use the proxy and execute a method the list of servers are hunted whether it can handle the request (EJB identificator is [ejb:]app/modul/bean!view)
All possibilities are given to a selector class (default is Random....) to choice one of the posibilities.
If there are none you get such Exception
reasons:
- no EJB with that name deployed
- no server available (for this ejb)
- connection closed by error (should be reopend if possible)
If you run the same code in different JVM versions, your behaviour looks like a JVM bug (nio), What if you use the last Java7 (I would prefer that for AS7)
Could you reproduce it with a upstream compilation (As7.2.X or 7.1.3)?
You might set logging org.jboss.ejb.client=TRACE to see more informations