[jboss-dev-forums] [JBoss AS 7 Development] - Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final
Bijoy James
do-not-reply at jboss.com
Thu Aug 23 08:32:48 EDT 2012
Bijoy James [https://community.jboss.org/people/bijoyjp] 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/755407#755407
--------------------------------------------------------------
I have a main method +ClientMain.java+ and another java file +LookUp_Bean.java.+
1. The LookUp_Bean class having the method for getting the remote object for ejb. And the LookUp_Bean class i created a main method for getting the remote object
*public* *static* *void* main(String[] args){
LookUp_Bean.+getJMSRARemote+("localhost:4447");
}
I run this LookUp_Bean class and am getting the remote object.
1. In the other case I have a main class for entire client application ie +ClientMain.java.+ From the ClientMain am calling the method inside the Lookup_Bean class am getting the exception
LookUp_Bean.+getJMSRARemote+("localhost:4447");
At the line of +objRemote = home.create();+ am getting the exception.
1. java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:JMSRa,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext at 2b2c81
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755407#755407]
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/cb5cf78f/attachment.html
More information about the jboss-dev-forums
mailing list