public void post_init(ORBInitInfo info) {
try {
if (log.isDebugEnabled()) log.debug("Registering IOR interceptor");
try {
info.add_server_request_interceptor(new ServiceContextInterceptor());
} catch (DuplicateName dn) {
log.error("Error registering interceptor", dn);
}
} catch (RuntimeException re) {
log.error("Error registering interceptor", re);
throw re;
}
}
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. |