*/
public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
{
if (connectionFactory instanceof JNDIConnectionFactory)
{
JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;
if ( connectionURL == null)
{
connectionURL = jndiCF.getProviderURL();
}
if ( defaultUser == null)
{
defaultUser = jndiCF.getSecurityPrincipal();
}
if ( defaultPassword == null)
{
defaultPassword = jndiCF.getSecurityCredentials();
}
}
else if (connectionFactory instanceof progress.message.jclient.ConnectionFactory)
{
progress.message.jclient.ConnectionFactory sonicCF = (progress.message.jclient.ConnectionFactory) connectionFactory ;