/** * In JRMP the 2 method( per and post init have the same consequences ... * @param JInitInfo the JInit Information */ public void preInit(final JInitInfo info) { try { info.addClientRequestInterceptor(new ClientSecurityInterceptor()); info.addServerRequestInterceptor(new ServerSecurityInterceptor()); } catch (Exception e) { e.printStackTrace(); } }
/** * In JRMP the 2 method( per and post init have the same consequences ... * @param JInitInfo the JInit Information */ public void preInit(final JInitInfo info) { try { info.addServerRequestInterceptor(new ServerInterceptor()); } catch (Exception e) { throw new IllegalStateException("Cannot built interceptor: " + e.getMessage()); } }
/** * In JRMP the 2 methods (pre and post init) have the same consequences... * @param JInitInfo the JInit Information */ public void preInit(final JInitInfo info) { try { info.addServerRequestInterceptor(new ProtocolInterceptor()); } catch (Exception e) { TraceCarol.error( "ProtocolInterceptorInitializer.pre_init(JInitInfo info) could'nt instantiate iiop Interceptor", e); } }
/** * In JRMP the 2 method( per and post init have the same * consequences ... * @param info JInitInfo the JInit Information */ public void preInit(JInitInfo info) { if (TraceTm.jta.isDebugEnabled()) { TraceTm.jta.debug("JTAInterceptorInitializer.pre_init"); } try { info.addClientRequestInterceptor( new JTAClientTransactionInterceptor()); info.addServerRequestInterceptor( new JTAServerTransactionInterceptor()); } catch (Exception e) { e.printStackTrace(); } }
/** * Initializes the HA client and server side interceptors */ public void preInit(final JInitInfo info) { try { info.addClientRequestInterceptor(new HAClientInterceptor()); info.addServerRequestInterceptor(new HAServerInterceptor()); } catch (Exception e) { logger.error("Error while adding the request interceptors", e); } }