This is a test for method, i.e., explicit binding functionality. Description. -------- The goal of this test is to check that establishes connections appropriate for the effective policy overrides, and that it detects policy misconfigurations and reports them back to the client via parameter. The server creates an object, which can be used through IIOP or SHMIOP, and publishes its IOR. The client performs three tests: 1) Set ClientProtocolPolicy override to SHMIOP, and invoke on the object. This should return TRUE, and one SHMIOP connection should get established. 2) Invoke on the object. The invocation should succeed and NO new connections should get established (connection from step 1 should get used). 3) Now set ClientProtocolPolicy override to UIOP, and invoke on the object. It should return FALSE (because the server is not reachable through UIOP), and should contain the problematic override: ClientProtocolPolicy we specified. To run (on Unix): ------- $./server [-o ] -ORBendpoint iiop:// -ORBendpoint shmiop:// $./client [-o ] -ORBdebuglevel 1 Options: -------- Server: -o Default: test.ior Filename for output of the server IOR. -ORBendpoint iiop:// Default: none -ORBendpoint shmiop:// Need to open server endpoints for several protocols. Client is hardcoded to use SHMIOP, so these options must be specified for the test to work. Client: -o Default: file://test.ior IOR of the test object. -ORBdebuglevel 1 Default: none Recommended debug level for monitoring of connection establishment. Expected output: ---------------- Below is a sample output from run_test.pl on NT. Please note that since in this test we are using ORB debug option 1) test output may look different from that shown below as ORB debug messages are modified by developers 2) the output may contain some debug information irrelevant to this test ********** RTCORBA Explicit Binding Unit Test TAO (964|300) Loaded default protocol TAO (964|300) Loaded default protocol Test 1 TAO (964|300) Connector::connect - looking for SHMIOP connection. TAO (964|300) SHMIOP connection to server <127.0.0.1:2104> on 320 Test 2 TAO (964|300) Connector::connect - looking for SHMIOP connection. Server: test_method invoked. Test 3 Inconsistent policies contain ClientProtocolPolicy, as expected. Testing over - shutting down TAO (964|300) Connector::connect - looking for SHMIOP connection. Server ORB event loop finished TAO (964|300) SHMIOP_Client_Connection_Handler::handle_close (320, 511)