*/
protected TopicConnectionFactory getTopicConnectionFactory(Context remoteHostContext) {
try {
return (TopicConnectionFactory)remoteHostContext.lookup(connectionFactoryName);
} catch (NamingException e) {
RemoteCommandManagerException rcmException = RemoteCommandManagerException.errorLookingUpRemoteConnection(connectionFactoryName, rcm.getUrl(), e);
rcm.handleException(rcmException);
// If the handler hasn't thrown the exception rethrow it here - it's impossible to recover.
throw rcmException;
}
}