public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
{
if (connectionFactory instanceof JNDIConnectionFactory)
{
JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
MQAdminConnectionFactory aCF = (MQAdminConnectionFactory) jndiCF.createContext().lookup(getAdminBinding()) ;
MQAdminConnection aCon = aCF.createMQAdminConnection(getAdminUser(), getAdminPassword()) ;
return new FioranoAdmin(hermes, aCon) ;
}
else
{