Called during ORB initialization. If a service must resolve initial
references as part of its initialization, it can assume that all
initial references will be available at this point.
Calling the post_init
operations is not the final
task of ORB initialization. The final task, following the
post_init
calls, is attaching the lists of registered
interceptors to the ORB. Therefore, the ORB does not contain the
interceptors during calls to post_init
. If an
ORB-mediated call is made from within post_init
, no
request interceptors will be invoked on that call.
Likewise, if an operation is performed which causes an IOR to be
created, no IOR interceptors will be invoked.
Codec codec = null;
CodecFactory cf = info.codec_factory();
byte major_version = 1;
byte minor_version = 2;
Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
major_version, minor_version);
try {
codec = cf.create_codec(encoding);
} catch (org.omg.IOP.CodecFactoryPackage.UnknownEncoding e) {
_logger.log(Level.WARNING,"UnknownEncoding from " + baseMsg,e);
}
try {
info.add_ior_interceptor(new IORAddrAnyInterceptor(codec));
} catch (DuplicateName ex) {
_logger.log(Level.WARNING,"DuplicateName from " + baseMsg,ex);
}