JBoss Community

Re: How to close remote ejb/jndi connections

created by Richard Opalka in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community