[jboss-dev-forums] [JBoss AS 7 Development] - Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final
Wolf-Dieter Fink
do-not-reply at jboss.com
Thu Aug 23 08:31:47 EDT 2012
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion
"Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final"
To view the discussion, visit: https://community.jboss.org/message/755405#755405
--------------------------------------------------------------
> 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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755405#755405]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120823/0d2514fc/attachment.html
More information about the jboss-dev-forums
mailing list