@ Override public void activate ( ComponentContext context , Map < String , Object > properties , ConfigurationAdmin configAdmin ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "activate" , new Object [ ] { context , properties , configAdmin } ) ; } try { // set ME state to starting _state = ME_STATE . STARTING . toString ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( this , tc , "Starting the JMS server." ) ; } // initilize config object initialize ( context , properties , configAdmin ) ; _jsMainImpl = new JsMainImpl ( context . getBundleContext ( ) ) ; _jsMainImpl . initialize ( jsMEConfig ) ; _jsMainImpl . start ( ) ; // If its here it means all the components have started hence set // the state to STARTED _state = ME_STATE . STARTED . toString ( ) ; SibTr . info ( tc , "ME_STARTED_SIAS0108" ) ; } catch ( InvalidFileStoreConfigurationException ifs ) { // since there is exception in starting ME the state is set to // STOPPED _state = ME_STATE . STOPPED . toString ( ) ; SibTr . error ( tc , "ME_STOPPED_SIAS0109" ) ; SibTr . exception ( tc , ifs ) ; FFDCFilter . processException ( ifs , "com.ibm.ws.messaging.service.JsMainAdminServiceImpl" , "132" , this ) ; } catch ( Exception e ) { // since there is exception in starting ME the state is set to // STOPPED _state = ME_STATE . STOPPED . toString ( ) ; SibTr . error ( tc , "ME_STOPPED_SIAS0109" ) ; SibTr . exception ( tc , e ) ; FFDCFilter . processException ( e , "com.ibm.ws.messaging.service.JsMainAdminServiceImpl" , "139" , this ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "activate" ) ; } }
Constructs the JsMEConfig object based upon the Map and Activates various ME components