1 28 package org.objectweb.carol.jtests.conform.interceptor.iiop; 29 30 import org.omg.CORBA.LocalObject ; 31 import org.omg.PortableInterceptor.ORBInitInfo ; 32 import org.omg.PortableInterceptor.ORBInitializer ; 33 34 39 public class IIOPInitializer extends LocalObject implements ORBInitializer { 40 41 45 public void pre_init(ORBInitInfo info) { 46 try { 47 info.add_client_request_interceptor(new IIOPDummyClientInterceptor("client interceptor")); 48 info.add_server_request_interceptor(new IIOPDummyServerInterceptor("server interceptor")); 49 } catch (Exception e) { 50 System.out.println("could'nt instantiate iiop Interceptor" + e); 51 e.printStackTrace(); 52 } 53 } 54 55 62 public void post_init(ORBInitInfo info) { 63 } 65 66 } | Popular Tags |