[jboss-dev-forums] [JBoss AS 7 Development] - Re: How to close remote ejb/jndi connections

Richard Opalka do-not-reply at jboss.com
Mon Mar 19 03:55:56 EDT 2012


Richard Opalka [https://community.jboss.org/people/ropalka] created the discussion

"Re: How to close remote ejb/jndi connections"

To view the discussion, visit: https://community.jboss.org/message/724595#724595

--------------------------------------------------------------
Hello, the following solution works for us:

InitialContext ctx = new InitialContext(remoteEjbProperties);
try {
   ...
   // do something with ctx, e.g. lookup & use EJBs via ejb: remote protocol
   ...
} finally {
   ctx.close();
}
--------------------------------------------------------------

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

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/20120319/42bf5cf7/attachment.html 


More information about the jboss-dev-forums mailing list