I created a sample class file (LookUp_Bean.java) and having the code for getting the remote object and I run this class files and here it’s working fine am getting the remote object and am able to call the methods inside the ejb bean.
But from my client application if I run means it’s not working. In this case the main class is different class and from the main class am calling the (LookUp_Bean.java) class for getting the remote object. Both times am using same method. Am getting below exception.
I placed the properties file in the class path of the client application
java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:JMSRa,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@2b2c81
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
at $Proxy14.create(Unknown Source)
at CacheStructures.LookUp_Bean.getJMSRARemote(LookUp_Bean.java:199)
at FMSMain.main(FMSMain.java:103)