jmsDestination = (Destination) oCtx.lookup(destinationName);
} catch (NamingException ne) {
oCtx = NamingContextPool.replaceNamingContext(oCtx, environment);
jmsDestination = (Destination) oCtx.lookup(destinationName);
}
final MessageProducer jmsProducer = jmsSession.createProducer(jmsDestination);
jmsProducer.close() ;
} finally {
NamingContextPool.releaseNamingContext(oCtx) ;
}
} finally {