entry.setApplication( null );
final String message =
REZ.getString( "kernel.error.entry.initialize",
entry.getMetaData().getName() );
throw new CascadingException( message, t );
}
try
{
ContainerUtil.start( application );
}
catch( final Throwable t )
{
final String message =
REZ.getString( "kernel.error.entry.start", entry.getMetaData().getName() );
if( m_addInvalidApplications )
{
getLogger().warn( message, t );
}
else
{
//Initialization failed so clean entry
//so invalid instance is not used
entry.setApplication( null );
throw new CascadingException( message, t );
}
}
entry.setApplication( application );
// manage application
try
{
m_applicationManager.register( name,
application,
new Class[]{ApplicationMBean.class} );
}
catch( final Throwable t )
{
final String message =
REZ.getString( "kernel.error.entry.manage", name );
throw new CascadingException( message, t );
}
}
}
}