Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / Auth / ServerInitializer.cpp
blob25de9b5b8add8b59c7b36372a36a8b4f08f510d3
1 #include "ServerInitializer.h"
2 #include "ServerInterceptor.h"
4 #include <iostream>
6 ServerInitializer::ServerInitializer ()
10 void
11 ServerInitializer::pre_init (
12 PortableInterceptor::ORBInitInfo_ptr)
16 void
17 ServerInitializer::post_init (
18 PortableInterceptor::ORBInitInfo_ptr info)
20 // Create and register the request interceptors.
21 PortableInterceptor::ServerRequestInterceptor_ptr si =
22 PortableInterceptor::ServerRequestInterceptor::_nil ();
24 try
26 si = new ServerInterceptor ();
28 catch(...)
30 std::cerr << "Exception occurred trying to create ServerInterceptor." << std::endl;
33 PortableInterceptor::ServerRequestInterceptor_var si_interceptor =
34 si;
36 info->add_server_request_interceptor (si_interceptor.in ());