throw new JMSException("Invalid instance of session obtained from server session." +
"The instance should be one of the following: ActiveMQSession, ActiveMQTopicSession, ActiveMQQueueSession. " +
"Found instance of " + nestedSession.getClass().getName());
}
session.dispatch(message);
serverSession.start();
}
/**
* Gets the server session pool associated with this connection consumer.
*