public synchronized void destroy ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) Tr . event ( tc , "Destroying home " , new Object [ ] { this , j2eeName } ) ; if ( ! enabled ) { return ; } // F743-1751 - Explicitly destroy singletons since they are not pooled. if ( ivSingletonBeanO != null ) { try { ivSingletonBeanO . destroy ( ) ; } catch ( Throwable ex ) { FFDCFilter . processException ( ex , CLASS_NAME + ".destroy" , "809" , this ) ; } } if ( beanPool != null ) { beanPool . destroy ( ) ; } enabled = false ; if ( pmiBean != null ) { container . pmiFactory . removePmiModule ( pmiBean ) ; // d146239.14 } }
Disable this home instance and free all resources associated with it .