entry.setApplication( null );
final String message =
REZ.format( "kernel.error.entry.initialize",
entry.getProfile().getMetaData().getName() );
throw new LoomException( message, t );
}
try
{
ContainerUtil.start( application );
}
catch( final Throwable t )
{
final String message =
REZ.format( "kernel.error.entry.start",
entry.getProfile().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 LoomException( message, t );
}
}
entry.setApplication( application );
// manage application
try
{
m_applicationManager.register( name, application );
}
catch( final Throwable t )
{
final String message =
REZ.format( "kernel.error.entry.manage", name );
throw new LoomException( message, t );
}
}
}
}