ORBConcurrency thread-per-connection

create file hello_svc.conf with the following content according to this document:
static Resource_Factory “-ORBResources global -ORBReactorType select_mt”
static Server_Strategy_Factory “-ORBConcurrency thread-per-connection”
start naming server:
tao_cosnaming -ORBListenEndpoints iiop://localhost:9999
start servant:
taohelloserver -ORBInitRef NameService=corbaloc:iiop:localhost:9999/NameService -ORBSvcConf ~/workspace/taohelloserver/hello_svc.conf

The document says that it can also be configured by code instead of file:
TAO::ORB::default_svc_conf_entries //TAO_Internal::
(NULL, NULL, “static Server_Strategy_Factory \”-ORBConcurrency thread-per-connection\””);
but I got link error:
/home/onega/workspace/taohelloserver/Debug/../taohelloserver.cpp:21: undefined reference to `TAO::ORB::default_svc_conf_entries(char const*, char const*, char const*)’
collect2: ld returned 1 exit status

[onega@localhost Debug]$ nm –demangle $ACE_ROOT/lib/libTAO.so | grep “default_svc_conf_entries”
000efa80 t TAO::ORB::default_svc_conf_entries(char const*, char const*, char const*)

There is a post recommended adding TAO_Export to default_svc_conf_entries() in TAO_Internal.h, but I still got the link error after rebuild TAO.

Advertisements
This entry was posted in ACE, CORBA, CPP and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s