[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
Fri Aug 24 05:59:39 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/755726#755726
--------------------------------------------------------------
I think now my problem solved and its working fine.
I used below code
objProperties = new Properties();
objProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
objProperties.put(Context.PROVIDER_URL, "remote://" + Url);
objProperties.put("jboss.naming.client.ejb.context", true);
objProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
jndiContext = new InitialContext(objProperties);
obj = jndiContext.lookup("JMSRa/JMSRA!Home.JMSRAHome");
/*
* jar name is JMSRa
*/
home = (JMSRAHome) PortableRemoteObject.narrow(obj, JMSRAHome.class);
objRemote = home.create();
jndiContext.close();
If am not using jndiContext.close(); means my application is not working, I don’t kno what’s the reason
And "jboss-ejb-client.properties" in the client application class path also.
In the “jboss-ejb-client.properties” file I used below properties
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port=4447
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
Thanks for https://community.jboss.org/people/wdfink Wolf-Dieter Fink and https://community.jboss.org/people/olli24 Oliver Katzer for your valuable helps
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755726#755726]
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/20120824/72412372/attachment.html
More information about the jboss-dev-forums
mailing list