public class RMIInitializer extends LocalObject implements ORBInitializer {
static final Logger logger = Logger.getLogger(RMIInitializer.class
.getName());
public void pre_init(ORBInitInfo info) {
Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte)1,(byte) 0);
CodecFactory codecFactory = info.codec_factory();
try {
Codec codec = codecFactory.create_codec(encoding);
RMIInterceptor rmiInterceptor = new RMIInterceptor(codec);
info.add_ior_interceptor(rmiInterceptor);