provider = new JndiProvider( nexus );
// --------------------------------------------------------------------
// Adding interceptors
// --------------------------------------------------------------------
InterceptorChain interceptor = ( InterceptorChain ) initialEnv.get( EnvKeys.INTERCEPTORS );
if( interceptor == null )
{
// If custom interceptor is not specified, use defaule one.
interceptor = InterceptorChain.newDefaultChain();
}
interceptor.init( new InterceptorContext( initialEnv, system, globalRegistries, nexus,
InterceptorConfigBuilder.build( initialEnv, EnvKeys.INTERCEPTORS ) ) );
provider.setInterceptor( interceptor );
// fire up the app partitions now!