JBoss Community

Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final

created by Bijoy James in JBoss AS 7 Development - View the full discussion

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@2b2c81

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community