Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tests / POA / Bug_1592_Regression / Server_ORBInitializer.cpp
blob1e5fe385f82231f73a4c2682786716abfda43f92
1 #include "Server_ORBInitializer.h"
2 #include "tao/ORB_Constants.h"
3 #include "Server_Request_Interceptor.h"
5 Server_ORBInitializer::Server_ORBInitializer ()
9 void
10 Server_ORBInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr)
15 void
16 Server_ORBInitializer::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info)
19 PortableInterceptor::ServerRequestInterceptor_ptr interceptor;
21 ACE_NEW_THROW_EX (interceptor,
22 Server_Request_Interceptor,
23 CORBA::NO_MEMORY (
24 CORBA::SystemException::_tao_minor_code (
25 TAO::VMCID,
26 ENOMEM),
27 CORBA::COMPLETED_NO));
29 PortableInterceptor::ServerRequestInterceptor_var safe_interceptor =
30 interceptor;
32 // Install the server request interceptor.
33 info->add_server_request_interceptor (interceptor);