public static String login ( final String _userName , final String _passwd , final String _applicationKey ) throws EFapsException { String ret = null ; if ( JmsSession . checkLogin ( _userName , _passwd , _applicationKey ) ) { final JmsSession session = new JmsSession ( _userName ) ; JmsSession . CACHE . put ( session . getSessionKey ( ) , session ) ; ret = session . getSessionKey ( ) ; } return ret ; }
Login and create a Session .