private void initialize ( ComponentContext context , Map < String , Object > properties , ConfigurationAdmin configAdmin ) throws InvalidFileStoreConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "initialize" , new Object [ ] { context , properties } ) ; } this . properties = properties ; this . bundleLocation = context . getBundleContext ( ) . getBundle ( ) . getLocation ( ) ; // populate filestore SIBFileStore filestore = new SIBFileStoreImpl ( ) ; populateFileStore ( properties , filestore , configAdmin ) ; // set bus properties // nothing to set for bus as only defaults are considered // uuid will be set by the processor SIBus bus = new SIBusImpl ( ) ; // set the properties for mesagingengine object.first the queues or // topic is got from // Administration Config and list of SIBBestination is created // and then the localization list is created for those SIBdestination SIBMessagingEngine messagingEngine = new SIBMessagingEngineImpl ( ) ; messagingEngine . setHighMessageThreshold ( ( Long ) properties . get ( JsAdminConstants . HIGHMESSAGETHRESHOLD ) ) ; HashMap < String , BaseDestination > destinationList = new HashMap < String , BaseDestination > ( ) ; HashMap < String , SIBLocalizationPoint > destinationLocalizationList = new HashMap < String , SIBLocalizationPoint > ( ) ; // populate destinations of type QUEUE populateDestinations ( properties , destinationList , destinationLocalizationList , messagingEngine . getName ( ) , JsAdminConstants . QUEUE , configAdmin , false ) ; // populate destinations of type TOPICSPACE populateDestinations ( properties , destinationList , destinationLocalizationList , messagingEngine . getName ( ) , JsAdminConstants . TOPICSPACE , configAdmin , false ) ; //populate destinations of type ALIAS populateAliasDestinations ( properties , destinationList , configAdmin ) ; // processor will update the UUID via Admin.Since we dont get UUID info from server.xml messagingEngine . setDestinationList ( destinationList ) ; messagingEngine . setSibLocalizationPointList ( destinationLocalizationList ) ; // set all the constructed artifact to jsMEConfig jsMEConfig . setMessagingEngine ( messagingEngine ) ; jsMEConfig . setSIBFilestore ( filestore ) ; jsMEConfig . setSIBus ( bus ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "initialize" ) ; } }
Initializes the JsMEConfig Object Creates a defaultQueue and defaultTopic as well . If filestore is not mentioned in server . xml an default filestore is created