private ServiceRegistration < ? > registerMBeanService ( String jmsResourceName , BundleContext bundleContext ) { Dictionary < String , String > props = new Hashtable < String , String > ( ) ; props . put ( KEY_SERVICE_VENDOR , "IBM" ) ; JmsServiceProviderMBeanImpl jmsProviderMBean = new JmsServiceProviderMBeanImpl ( getServerName ( ) , KEY_JMS2_PROVIDER ) ; props . put ( KEY_JMX_OBJECTNAME , jmsProviderMBean . getobjectName ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "JmsQueueMBeanImpl=" + jmsProviderMBean . getobjectName ( ) + " props=" + props ) ; } return bundleContext . registerService ( JmsServiceProviderMBeanImpl . class , jmsProviderMBean , props ) ; }
Registers MBean for JMSServiceProvider .. in future can be made generic .