[jboss-dev-forums] [JBoss AS 7 Development] - Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final
Oliver Katzer
do-not-reply at jboss.com
Mon Aug 20 08:06:55 EDT 2012
Oliver Katzer [https://community.jboss.org/people/olli24] 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/754517#754517
--------------------------------------------------------------
Hi there.
We are migrating from JBoss5 to JBoss7 and faced the same problem.
Thread-A creates the InitContext and does the JNDI EJB lookup and creates the instance of the EJB remote inferface.
Thread-A can invoke methods via the EJB remote interface.
Thread-B gets the reference of the EJB remote interface.
But if Thread-B tries to invoke a method via the EJB remote interface following exception is thrown:
Exception in thread "xxx" java.lang.IllegalStateException: No EJBReceiver available for node name oliver2
at org.jboss.ejb.client.EJBClientContext.requireNodeEJBReceiver(EJBClientContext.java:613)
at org.jboss.ejb.client.EJBClientContext.requireNodeEJBReceiverContext(EJBClientContext.java:648)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:71)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
Of course accessing the remote interface is serialized via synchronized blocks.
I use the same Context properties like https://community.jboss.org/people/bijoyjp Bijoy James.
Under JBoss5 this has been working.
How I can Thread-B allow using the remote interface, which was created from Thread-A?
Thanks in advance for any help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754517#754517]
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/20120820/bf51be5e/attachment.html
More information about the jboss-dev-forums
mailing list