diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-11 19:20:02 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-11 19:20:02 +0000 |
commit | 0a4de583cd03cfd92940637dde5f5383c5b0cb20 (patch) | |
tree | 0191e2980920ad4805ae9f37628039572796b066 /TAO/tests/POA/Explicit_Activation | |
parent | 54e7c61abd24a465f7678010c5273d07924d3f86 (diff) | |
download | ATCD-0a4de583cd03cfd92940637dde5f5383c5b0cb20.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tests/POA/Explicit_Activation')
-rw-r--r-- | TAO/tests/POA/Explicit_Activation/server.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/TAO/tests/POA/Explicit_Activation/server.cpp b/TAO/tests/POA/Explicit_Activation/server.cpp index e4d15e39d2f..de1ef8f4565 100644 --- a/TAO/tests/POA/Explicit_Activation/server.cpp +++ b/TAO/tests/POA/Explicit_Activation/server.cpp @@ -28,7 +28,7 @@ main (int argc, char **argv) // Initialize the ORB first. CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, env); -// + if (env.exception () != 0) { env.print_exception ("CORBA::ORB_init"); @@ -41,7 +41,7 @@ main (int argc, char **argv) // Get the POA_var object from Object_var. PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in (), env); -// + if (env.exception () != 0) { env.print_exception ("PortableServer::POA::_narrow"); @@ -154,8 +154,17 @@ main (int argc, char **argv) // Object create_reference_with_id (in ObjectId oid, in CORBA::RepositoryId intf ); // This operation creates an object reference that encapsulates the // specified Object Id and interface repository Id values. + /* PortableServer::ObjectId_var third_oid = PortableServer::string_to_ObjectId ("thirdFoo"); + */ + + // This will test how the POA handles a user given ID + PortableServer::ObjectId_var third_oid = + PortableServer::string_to_ObjectId ("third Foo"); + + third_oid[5] = (CORBA::Octet) '\0'; + CORBA::Object_var third_foo = first_poa->create_reference_with_id (third_oid.in (), "IDL:Foo:1.0", env); |