private void createStartupBeans ( ) throws RuntimeWarning { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // d684950 if ( EJSPlatformHelper . isZOSCRA ( ) ) { if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "createStartupBeans: skipped in adjunct process" ) ; return ; } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createStartupBeans" ) ; for ( int i = 0 , size = ivStartupSingletonList . size ( ) ; i < size ; i ++ ) { J2EEName startupName = ivStartupSingletonList . get ( i ) ; try { // F743-1753CodRev EJSHome home = ( EJSHome ) EJSContainer . homeOfHomes . getHome ( startupName ) ; if ( home == null ) { // The home won't exist if singleton beans aren't enabled // in the runtime. if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Ignoring Singleton Startup bean: " + startupName ) ; } else { if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Creating instance for Singleton Startup bean: " + startupName . toString ( ) ) ; home . createSingletonBeanO ( ) ; } } catch ( Throwable t ) { // A failure has occurred processing the Startup Singletons. // Post an FFDC, log the failure, and throw a RuntimWarning to // cause this application start to abort. FFDCFilter . processException ( t , CLASS_NAME + ".createStartupBeans" , "6921" , this ) ; Tr . error ( tc , "STARTUP_SINGLETON_SESSION_BEAN_INITIALIZATION_FAILED_CNTR0190E" , new Object [ ] { startupName . getComponent ( ) , startupName . getModule ( ) , t } ) ; throw new RuntimeWarning ( "CNTR0201E: The " + startupName . getComponent ( ) + " startup singleton session bean in the " + startupName . getModule ( ) + " module failed initialization." , t ) ; } } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createStartupBeans" ) ; }
Creates all startup singleton beans .