summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-10-26 14:17:44 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-10-26 14:17:44 +0000
commitd4f210bdbc28466798c75cd939acadffef9b39b3 (patch)
tree67d7c7bcb4a397eeb38419166c27faccd21bdbda
parent37f2c58d261c0847adce7bcaa64401925fa0436e (diff)
downloadATCD-d4f210bdbc28466798c75cd939acadffef9b39b3.tar.gz
Register the correct factory
-rw-r--r--TAO/orbsvcs/tests/Event/UDP/receiver.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp
index 8024ef6f70b..3a6906100b6 100644
--- a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp
+++ b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "TestC.h"
ACE_RCSID (EC_Examples,
MCast,
@@ -61,6 +62,20 @@ main (int argc, char* argv[])
return 1;
}
+ if (valuetype)
+ {
+ ValueTypeData_init *vb_factory = 0;
+ ACE_NEW_RETURN (vb_factory,
+ ValueTypeData_init,
+ 1); // supplied by mapping
+
+ orb->register_value_factory (vb_factory->tao_repository_id (),
+ vb_factory
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ vb_factory->_remove_ref (); // release ownership
+ }
+
// This is the standard code to get access to the POA and
// activate it.
// The POA starts in the holding state, if it is not activated