public static final JmsSharedUtils getSharedUtils ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tcInt . isEntryEnabled ( ) ) SibTr . entry ( tcInt , "getSharedUtils" ) ; if ( jsuInstance == null ) { try { Class cls = Class . forName ( "com.ibm.ws.sib.api.jms.impl.JmsSharedUtilsImpl" ) ; jsuInstance = ( JmsSharedUtils ) cls . newInstance ( ) ; } catch ( Exception e ) { // No FFDC code needed // d238447 Add an FFDC for this problem FFDCFilter . processException ( e , "JmsInternalsFactory.getSharedUtils" , "getSharedUtils1" ) ; // Cannot use JmsErrorUtils because it's in the impl package. if ( TraceComponent . isAnyTracingEnabled ( ) && tcInt . isDebugEnabled ( ) ) SibTr . debug ( tcInt , "Unable to instantiate JmsSharedUtilsImpl" , e ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tcInt . isEntryEnabled ( ) ) SibTr . exit ( tcInt , "getSharedUtils" ) ; jsuInstance = null ; JMSException jmse = new JMSException ( nls . getFormattedMessage ( "UNABLE_TO_CREATE_FACTORY_CWSIA0201" , new Object [ ] { "JmsSharedUtilsImpl" , "sib.api.jmsImpl.jar" } , "!!!Unable to instantiate JmsSharedUtils" ) ) ; jmse . initCause ( e ) ; jmse . setLinkedException ( e ) ; throw jmse ; } //try } //if if ( TraceComponent . isAnyTracingEnabled ( ) && tcInt . isEntryEnabled ( ) ) SibTr . exit ( tcInt , "getSharedUtils" ) ; return jsuInstance ; }
Used to obtain the singleton instance of the JmsSharedUtils interface .