3 ===========================================================================
4 Directory: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_Static
6 ===========================================================================
7 This test shows the ThreadPool strategy can automatically apply to the poa
8 via service configuration file static directive.
10 This simple test is a copy of TP_Test_1. The difference is the test
11 application does not need to create the TP_Strategy object and apply to the
12 poa. A new TP_Strategy object is created during the initialization of the
13 TP_Strategy_Factory service object and it will be automatically applied to
16 The application needs to include the following two files to force the
17 TAO_CSD_ORB_Loader and TAO_CSD_TP_Strategy_Factory service objects register
18 with the service repository before initializing the services specified in
21 #include "tao/CSD_Framework/CSD_ORB_Loader.h"
22 #include "tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h"
25 The service configuration file specifies the number of threads that
26 the ThreadPool strategy have and also specify which poa the strategy should
27 apply to. We can specify multiple ThreadPool strategies and the poas via -CSDtp
31 static TAO_CSD_TP_Strategy_Factory "-CSDtp RootPOA:2 -CSDtp ChildPoa:3"
34 To run the test use the run_test.pl script:
38 the script returns 0 if the test was successful.