You can access an MJmsSession in two ways:
MApp::getComponentByName(sessionName)
MApp::getComponentRegistry()
class MJmsSession : public MSession;
MObject MComponent MSession MJmsSession