I have a main method ClientMain.java and another java file LookUp_Bean.java.
- 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.
- 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.
- java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:JMSRa,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@2b2c81