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

Hi Oliver,

 

I placed the "jboss-ejb-client.properties" in "jboss-as-7.1.1.Final\bin\" folder

But in my code am not able to get the remote object.

Am using the below code for getting the remote object.

String appName = "";

String moduleName = "jboss-as-ejb-remote-app";

String distinctName = "";

Properties objProperties = new Properties();

objProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

initContext = new InitialContext(objProperties);

 

Object obj = initContext.lookup("ejb:"+ appName + "/"+ moduleName + "/" + distinctName + "/JMSRa/JMSRA!Home.JMSRAHome");

 

JMSRAHome home = (JMSRAHome) PortableRemoteObject.narrow(obj, JMSRAHome.class);

JMSRARemote  objRemote = home.create();

 

Am getting exception on last line “home.create(); ”

As  java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-app,distinctname:]

 

 

How u are getting the remote object for invoking the method inside the bean.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community