blob: 25de9b5b8add8b59c7b36372a36a8b4f08f510d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "ServerInitializer.h"
#include "ServerInterceptor.h"
#include <iostream>
ServerInitializer::ServerInitializer ()
{
}
void
ServerInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr)
{
}
void
ServerInitializer::post_init (
PortableInterceptor::ORBInitInfo_ptr info)
{
// Create and register the request interceptors.
PortableInterceptor::ServerRequestInterceptor_ptr si =
PortableInterceptor::ServerRequestInterceptor::_nil ();
try
{
si = new ServerInterceptor ();
}
catch(...)
{
std::cerr << "Exception occurred trying to create ServerInterceptor." << std::endl;
}
PortableInterceptor::ServerRequestInterceptor_var si_interceptor =
si;
info->add_server_request_interceptor (si_interceptor.in ());
}
|