[jboss-dev-forums] [JBoss AS 7 Development] - Re: EJB bean is not working in Multi threading of JBoss 7.1.1 Final

Oliver Katzer do-not-reply at jboss.com
Tue Aug 21 10:48:59 EDT 2012


Oliver Katzer [https://community.jboss.org/people/olli24] 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/754851#754851

--------------------------------------------------------------
System.setProperty("jboss.ejb.client.properties.file.path", "C:\\jboss-ejb-client.properties"); // Content of the file I posted already.

Properties properties = new Properties();
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
Context jndiContext = new InitialContext(properties);


Object ref = jndiContext.lookup( "ejb:/MtzWebComm//CommEJB!de.miditec.communication.ejb.CommEJBHome");
CommEJBHome commEJBHome = (CommEJBHome) PortableRemoteObject.narrow(ref, CommEJBHome.class);

CommEJB commEJB = commEJBHome.create(1);

System.out.println( commEJB.getHello() );
commEJB.remove();

So, it's similar to your code.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/754851#754851]

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/20120821/93c9d408/attachment.html 


More information about the jboss-dev-forums mailing list