summaryrefslogtreecommitdiff
path: root/CIAO/connectors/ami4ccm/tests/NoConnection
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/ami4ccm/tests/NoConnection')
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.idl23
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.mpc191
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.idl16
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.mpc132
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.cpp160
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.h132
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.idl19
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.mpc133
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.cpp361
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.h167
-rw-r--r--CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/Plan.cdp376
-rwxr-xr-xCIAO/connectors/ami4ccm/tests/NoConnection/descriptors/run_test.pl243
12 files changed, 0 insertions, 1953 deletions
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.idl b/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.idl
deleted file mode 100644
index e2020190291..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef HELLO_T_IDL
-#define HELLO_T_IDL
-
-#pragma ciao lem "Base/HelloTE.idl"
-#pragma ciao ami4ccm interface "HelloT::MyFoo"
-#pragma ciao lem "Base/HelloTAE.idl"
-#pragma ciao ami4ccm idl "Base/HelloTA.idl"
-
-module HelloT
-{
- // Sender/Receiver interface
- interface MyFoo
- {
- void hello (out string answer);
-
- attribute short rw_attrib;
-
- readonly attribute short ro_attrib;
- };
-};
-
-#endif
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.mpc b/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.mpc
deleted file mode 100644
index ed67272061f..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Base/HelloT.mpc
+++ /dev/null
@@ -1,191 +0,0 @@
-project(AMI_HelloT_idl_gen) : componentidldefaults, ami, ami4ccm_stub {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_STUB_Export \
- -Wb,stub_export_include=HelloT_stub_export.h \
- -Wb,skel_export_macro=HELLO_T_SKEL_Export \
- -Wb,skel_export_include=HelloT_skel_export.h \
- -Wb,conn_export_macro=HELLO_T_CONN_Export \
- -Wb,conn_export_include=HelloT_conn_export.h \
- -Wb,exec_export_macro=HELLO_T_EXEC_Export \
- -Wb,exec_export_include=HelloT_exec_export.h \
- -I.. -GM -Gxhcn
-
- IDL_Files {
- HelloT.idl
- }
-}
-
-project(AMI_HelloT_lem_gen) : ciaoidldefaults {
- after += AMI_HelloT_idl_gen AMI_HelloT_lema_gen
- custom_only = 1
- idlflags += -Wb,export_macro=HELLO_T_LEM_STUB_Export \
- -Wb,export_include=HelloT_lem_stub_export.h \
- -I.. -SS -Gxhst
-
- IDL_Files {
- HelloTE.idl
- }
-}
-
-project(AMI_HelloT_lema_gen) : ciaoidldefaults, typecode {
- after += AMI_HelloT_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_STUB_Export \
- -Wb,stub_export_include=HelloT_stub_export.h \
- -Wb,conn_export_macro=HELLO_T_CONN_Export \
- -Wb,conn_export_include=HelloT_conn_export.h \
- -Wb,svnt_export_macro=HELLO_T_SVNT_Export \
- -Wb,svnt_export_include=HelloT_svnt_export.h \
- -Wb,skel_export_macro=HELLO_T_SKEL_Export \
- -Wb,skel_export_include=HelloT_skel_export.h \
- -I.. -Gsv -Gcn -Glem -GC -Gxhst -Gxhsv
-
- IDL_Files {
- HelloTA.idl
- }
-}
-
-project(AMI_HelloT_lemae_gen) : ciaoidldefaults {
- after += AMI_HelloT_lema_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_LEM_STUB_Export \
- -Wb,stub_export_include=HelloT_lem_stub_export.h \
- -I.. -SS
-
- IDL_Files {
- HelloTAE.idl
- }
-}
-
-project(AMI_HelloT_stub) : ccm_stub, ami, ami4ccm_stub {
- after += AMI_HelloT_lem_gen
- libs +=
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- sharedname = HelloT_stub
- dynamicflags += HELLO_T_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- HelloTC.cpp
- HelloTAC.cpp
- }
-
- Header_Files {
- HelloTC.h
- HelloT_stub_export.h
-}
-
- Inline_Files {
- HelloTC.inl
- }
-}
-
-project(AMI_HelloT_lem_stub) : ccm_executor, ami, ami4ccm_lem_stub {
- after += AMI_HelloT_lem_gen AMI_HelloT_stub AMI_HelloT_lemae_gen AMI_HelloT_skel
- libs += HelloT_stub HelloT_skel
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- sharedname = HelloT_lem_stub
- dynamicflags += HELLO_T_LEM_STUB_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- HelloTEC.cpp
- HelloTAEC.cpp
- }
-
- Header_Files {
- HelloTEC.h
- HelloT_lem_stub_export.h
-}
-
- Inline_Files {
- HelloTEC.inl
- }
-}
-
-project(AMI_HelloT_skel) : ciao_executor, ami, ami4ccm_servant {
- after += AMI_HelloT_stub
- sharedname = HelloT_skel
- libs += HelloT_stub
- libout = ../lib
- libpaths += ../lib
- includes += ..
-
- dynamicflags += HELLO_T_SKEL_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- HelloTS.cpp
- HelloTAS.cpp
- }
-
- Header_Files {
- HelloTS.h
-
- HelloT_skel_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_HelloT_conn) : ciao_executor, ami, ami4ccm_lem_stub {
- after += AMI_HelloT_lem_stub HelloT_Base_AMI_stub AMI_HelloT_skel AMI_HelloT_lema_gen AMI_HelloT_lemae_gen
- sharedname = HelloT_conn
- libs += HelloT_stub HelloT_skel HelloT_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_CONN_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloTA_conn.cpp
- }
-
- Header_Files {
- HelloTA_conn.h
- HelloT_conn_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_HelloT_svnt) : ciao_servant, ami, ami4ccm_servant {
- after += AMI_HelloT_lem_stub HelloT_Base_AMI_stub AMI_HelloT_skel AMI_HelloT_lema_gen AMI_HelloT_lemae_gen AMI_HelloT_conn
- sharedname = HelloT_svnt
- libs += HelloT_stub HelloT_skel HelloT_lem_stub HelloT_conn
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloTA_svnt.cpp
- }
-
- Header_Files {
- HelloTA_svnt.h
- HelloTA_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.idl b/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.idl
deleted file mode 100644
index e4d97c8b3fc..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.idl
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef HELLO_T_RECEIVER_IDL
-#define HELLO_T_RECEIVER_IDL
-
-#include <Components.idl>
-
-#include "Base/HelloT.idl"
-
-module HelloT
-{
- component Receiver
- {
- /// Provides
- provides MyFoo do_my_foo;
- };
-};
-#endif
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.mpc b/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.mpc
deleted file mode 100644
index 5999953de14..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver.mpc
+++ /dev/null
@@ -1,132 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p HelloT_Base HelloT_Receiver"
-
-project(AMI_HelloT_Base_Receiver_idl_gen) : componentidldefaults {
- custom_only = 1
- after += AMI_HelloT_idl_gen
- idlflags += -Wb,stub_export_macro=HELLO_T_RECEIVER_STUB_Export \
- -Wb,stub_export_include=HelloT_Receiver_stub_export.h \
- -Wb,skel_export_macro=HELLO_T_RECEIVER_SVNT_Export \
- -Wb,skel_export_include=HelloT_Receiver_svnt_export.h \
- -Wb,exec_export_macro=HELLO_T_RECEIVER_EXEC_Export \
- -Wb,exec_export_include=HelloT_Receiver_exec_export.h \
- -Glem -I..
-
- IDL_Files {
- HelloT_Receiver.idl
- }
-}
-
-project(AMI_HelloT_Base_Receiver_lem_gen) : ciaoidldefaults {
- after += AMI_HelloT_Base_Receiver_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_RECEIVER_LEM_STUB_Export \
- -Wb,stub_export_include=HelloT_Receiver_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- HelloT_ReceiverE.idl
- }
-}
-
-project(AMI_HelloT_Base_Receiver_l_stub) : ccm_svnt, messaging {
- after += AMI_HelloT_Base_Receiver_lem_gen AMI_HelloT_Base_Receiver_stub AMI_HelloT_stub
- libs += HelloT_stub HelloT_Receiver_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = HelloT_Receiver_lem_stub
- dynamicflags += HELLO_T_RECEIVER_LEM_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_ReceiverEC.cpp
- }
-
- Header_Files {
- HelloT_ReceiverEC.h
- HelloT_Receiver_lem_stub_export.h
- }
-
- Inline_Files {
- HelloT_ReceiverEC.inl
- }
-}
-
-project(AMI_HelloT_Base_Receiver_stub) : ccm_stub, messaging {
- after += AMI_HelloT_Base_Receiver_idl_gen AMI_HelloT_stub
- libs += HelloT_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = HelloT_Receiver_stub
- dynamicflags += HELLO_T_RECEIVER_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_ReceiverC.cpp
- }
-
- Header_Files {
- HelloT_ReceiverC.h
- HelloT_Receiver_stub_export.h
- }
-
- Inline_Files {
- HelloT_ReceiverC.inl
- }
-}
-
-project(AMI_HelloT_Base_Receiver_exec) : ciao_executor, messaging {
- after += AMI_HelloT_Base_Receiver_l_stub AMI_HelloT_Base_Receiver_stub AMI_HelloT_stub AMI_HelloT_lem_stub
- sharedname = HelloT_Receiver_exec
- libs += HelloT_Receiver_stub HelloT_Receiver_lem_stub HelloT_stub HelloT_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_RECEIVER_EXEC_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_Receiver_exec.cpp
- }
-
- Header_Files {
- HelloT_Receiver_exec.h
- HelloT_Receiver_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_HelloT_Base_Receiver_svnt) : ciao_servant, messaging {
- after += AMI_HelloT_Base_skel AMI_HelloT_Base_Receiver_l_stub AMI_HelloT_stub AMI_HelloT_skel AMI_HelloT_lem_stub
- sharedname = HelloT_Receiver_svnt
- libs += HelloT_Receiver_stub HelloT_Receiver_lem_stub \
- HelloT_skel \
- HelloT_stub HelloT_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_RECEIVER_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_ReceiverS.cpp
- HelloT_Receiver_svnt.cpp
- }
-
- Header_Files {
- HelloT_ReceiverS.h
- HelloT_Receiver_svnt.h
- HelloT_Receiver_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.cpp b/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.cpp
deleted file mode 100644
index 3972ae62806..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.cpp
+++ /dev/null
@@ -1,160 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "HelloT_Receiver_exec.h"
-#include "ace/OS_NS_unistd.h"
-
-namespace CIAO_HelloT_Receiver_Impl
-{
-
- /**
- * Facet Executor Implementation Class: do_my_foo_exec_i
- */
-
- do_my_foo_exec_i::do_my_foo_exec_i (
- ::HelloT::CCM_Receiver_Context_ptr ctx)
- : ciao_context_ (
- ::HelloT::CCM_Receiver_Context::_duplicate (ctx)),
- rw_attrib_ (-1)
- {
- }
-
- do_my_foo_exec_i::~do_my_foo_exec_i (void)
- {
- }
-
- // Operations from ::HelloT::MyFoo
-
- void
- do_my_foo_exec_i::hello (::CORBA::String_out answer)
- {
- answer = CORBA::string_dup ("This is my answer : Hi");
- }
-
- ::CORBA::Short
- do_my_foo_exec_i::rw_attrib (void)
- {
- return this->rw_attrib_;
- }
-
- void
- do_my_foo_exec_i::rw_attrib(::CORBA::Short new_value)
- {
- this->rw_attrib_ = new_value;
- }
-
- ::CORBA::Short
- do_my_foo_exec_i::ro_attrib (void)
- {
- return ACE_OS::rand () % 100;
- }
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- Receiver_exec_i::Receiver_exec_i (void){
- }
-
- Receiver_exec_i::~Receiver_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
-
- // Component attributes and port operations.
-
- ::HelloT::CCM_MyFoo_ptr
- Receiver_exec_i::get_do_my_foo (void)
- {
- if ( ::CORBA::is_nil (this->ciao_do_my_foo_.in ()))
- {
- do_my_foo_exec_i *tmp = 0;
- ACE_NEW_RETURN (
- tmp,
- do_my_foo_exec_i (
- this->ciao_context_.in ()),
- ::HelloT::CCM_MyFoo::_nil ());
-
- this->ciao_do_my_foo_ = tmp;
- }
-
- return
- ::HelloT::CCM_MyFoo::_duplicate (
- this->ciao_do_my_foo_.in ());
- }
-
- // Operations from Components::SessionComponent.
-
- void
- Receiver_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::HelloT::CCM_Receiver_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Receiver_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_activate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Receiver_exec_i::ccm_remove (void)
- {
- /* Your code here. */
- }
-
- extern "C" ::Components::EnterpriseComponent_ptr
- create_HelloT_Receiver_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Receiver_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.h b/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.h
deleted file mode 100644
index 9e843cc2e30..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Receiver/HelloT_Receiver_exec.h
+++ /dev/null
@@ -1,132 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_HELLOT_RECEIVER_EXEC_LMPZLZ_H_
-#define CIAO_HELLOT_RECEIVER_EXEC_LMPZLZ_H_
-
-#include "HelloT_ReceiverEC.h"
-#include "HelloT_Receiver_exec_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-
-namespace CIAO_HelloT_Receiver_Impl
-{
-
- /**
- * Provider Executor Implementation Class: do_my_foo_exec_i
- */
- class do_my_foo_exec_i
- : public virtual ::HelloT::CCM_MyFoo,
- public virtual ::CORBA::LocalObject
- {
- public:
- do_my_foo_exec_i (
- ::HelloT::CCM_Receiver_Context_ptr ctx);
- virtual ~do_my_foo_exec_i (void);
-
- //@{
- /** Operations and attributes from HelloT::MyFoo. */
-
- virtual
- void hello (::CORBA::String_out answer);
-
- virtual
- ::CORBA::Short rw_attrib (void);
-
- virtual
- void rw_attrib (::CORBA::Short rw_attrib);
-
- virtual
- ::CORBA::Short ro_attrib (void);
- //@}
-
- private:
- ::HelloT::CCM_Receiver_Context_var ciao_context_;
- ::CORBA::Short rw_attrib_;
- };
-
- /**
- * Component Executor Implementation Class: Receiver_exec_i
- */
-
- class Receiver_exec_i
- : public virtual Receiver_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Receiver_exec_i (void);
- virtual ~Receiver_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
-
- virtual ::HelloT::CCM_MyFoo_ptr
- get_do_my_foo (void);
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
-
- //@}
-
- private:
- ::HelloT::CCM_Receiver_Context_var ciao_context_;
-
- //@{
- /** Component attributes. */
- ::HelloT::CCM_MyFoo_var ciao_do_my_foo_;
- //@}
-
- //@{
- /** User defined members. */
- //@}
-
- //@{
- /** User defined private operations. */
- //@}
- };
-
- extern "C" HELLO_T_RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_HelloT_Receiver_Impl (void);
-}
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.idl b/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.idl
deleted file mode 100644
index 0073d580692..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.idl
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef HELLO_T_SENDER_IDL
-#define HELLO_T_SENDER_IDL
-
-#include <Components.idl>
-
-#include "Base/HelloT.idl"
-
-#pragma ciao ami4ccm receptacle "HelloT::Sender::run_my_foo"
-
-module HelloT
-{
- component Sender
- {
- /// For synchronous invocation
- uses MyFoo run_my_foo;
- };
-};
-
-#endif
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.mpc b/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.mpc
deleted file mode 100644
index 0e7b0c8eef3..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender.mpc
+++ /dev/null
@@ -1,133 +0,0 @@
-// This file is generated with "generate_component_mpc.pl -p HelloT_Base HelloT_Sender"
-
-project(AMI_HelloT_Base_Sender_idl_gen) : componentidldefaults {
- after += AMI_HelloT_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_SENDER_STUB_Export \
- -Wb,stub_export_include=HelloT_Sender_stub_export.h \
- -Wb,skel_export_macro=HELLO_T_SENDER_SVNT_Export \
- -Wb,skel_export_include=HelloT_Sender_svnt_export.h \
- -Wb,exec_export_macro=HELLO_T_SENDER_EXEC_Export \
- -Wb,exec_export_include=HelloT_Sender_exec_export.h \
- -I.. -GC
-
- IDL_Files {
- HelloT_Sender.idl
- }
-}
-
-project(AMI_HelloT_Base_Sender_lem_gen) : ciaoidldefaults {
- after += AMI_HelloT_Base_Sender_idl_gen
- custom_only = 1
- idlflags += -Wb,stub_export_macro=HELLO_T_SENDER_LEM_STUB_Export \
- -Wb,stub_export_include=HelloT_Sender_lem_stub_export.h \
- -SS -Gxhst -I..
-
- IDL_Files {
- HelloT_SenderE.idl
- }
-}
-
-project(AMI_HelloT_Base_Sender_lem_stub) : ccm_svnt, ami {
- after += AMI_HelloT_Base_Sender_lem_gen AMI_HelloT_stub Conn_HelloT_Base_stub
- libs += HelloT_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = HelloT_Sender_lem_stub
- dynamicflags += HELLO_T_SENDER_LEM_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_SenderEC.cpp
- }
-
- Header_Files {
- HelloT_SenderEC.h
- HelloT_Sender_lem_stub_export.h
- }
-
- Inline_Files {
- HelloT_SenderEC.inl
- }
-}
-
-project(AMI_HelloT_Base_Sender_stub) : ccm_stub, ami {
- after += AMI_HelloT_Base_Sender_idl_gen AMI_HelloT_Base_stub AMI_HelloT_stub Conn_HelloT_Base_stub
- libs += HelloT_stub
- libpaths += ../lib
- libout = ../lib
- sharedname = HelloT_Sender_stub
- dynamicflags += HELLO_T_SENDER_STUB_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_SenderC.cpp
- }
-
- Header_Files {
- HelloT_SenderC.h
- HelloT_Sender_stub_export.h
- }
-
- Inline_Files {
- HelloT_SenderC.inl
- }
-}
-
-project(AMI_HelloT_Base_Sender_exec) : ciao_executor, ami, ami4ccm_stub {
- after += AMI_HelloT_Base_Sender_lem_stub AMI_HelloT_Base_Sender_stub AMI_HelloT_Base_exec Conn_HelloT_Base_stub AMI_HelloT_lem_stub
- sharedname = HelloT_Sender_exec
- libs += HelloT_Sender_stub HelloT_Sender_lem_stub HelloT_stub HelloT_stub HelloT_lem_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_SENDER_EXEC_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_Sender_exec.cpp
- }
-
- Header_Files {
- HelloT_Sender_exec.h
- HelloT_Sender_exec_export.h
- }
-
- Inline_Files {
- }
-}
-
-project(AMI_HelloT_Base_Sender_svnt) : ciao_servant, ami {
- after += AMI_HelloT_Base_skel AMI_HelloT_Base_Sender_lem_stub AMI_HelloT_Base_Sender_stub AMI_HelloT_Base_exec AMI_HelloT_skel
- sharedname = HelloT_Sender_svnt
- libs += HelloT_Sender_stub HelloT_Sender_lem_stub \
- HelloT_skel \
- HelloT_stub
- libpaths += ../lib
- libout = ../lib
- dynamicflags += HELLO_T_SENDER_SVNT_BUILD_DLL
- includes += ..
- IDL_Files {
- }
-
- Source_Files {
- HelloT_SenderS.cpp
- HelloT_Sender_svnt.cpp
- }
-
- Header_Files {
- HelloT_SenderS.h
- HelloT_Sender_svnt.h
- HelloT_Sender_svnt_export.h
- }
-
- Inline_Files {
- }
-}
-
-
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.cpp b/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.cpp
deleted file mode 100644
index 82bf197ff09..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.cpp
+++ /dev/null
@@ -1,361 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-
-#include "HelloT_Sender_exec.h"
-#include "ace/OS_NS_unistd.h"
-
-namespace CIAO_HelloT_Sender_Impl
-{
- CORBA::Short nr_of_asyn_received = 0;
- CORBA::Short nr_of_asyn_called = 0;
- CORBA::Short nr_of_syn_failed = 0;
-
- //============================================================
- // Worker thread for asynchronous invocations for MyFoo
- //============================================================
- asynch_foo_generator::asynch_foo_generator (
- ::HelloT::CCM_Sender_Context_ptr context)
- : context_(::HelloT::CCM_Sender_Context::_duplicate (context))
- {
- }
-
- int asynch_foo_generator::svc ()
- {
- ACE_OS::sleep (3);
- ::HelloT::AMI4CCM_MyFoo_var my_foo_ami_ =
- context_->get_connection_sendc_run_my_foo();
-
- if (CORBA::is_nil (my_foo_ami_))
- {
- ACE_ERROR ((LM_ERROR, "ERROR Sender (ASYNCH) :\tfoo_ami is NIL !\n"));
- return 1;
- }
- else
- {
- ::HelloT::AMI4CCM_MyFooReplyHandler_var cb =
- new AMI4CCM_MyFooReplyHandler_run_my_foo_i ();
-
- //Invoke Asynchronous calls
- try
- {
- my_foo_ami_->sendc_hello (cb.in());
- ++nr_of_asyn_called;
- }
- catch (const CORBA::INV_OBJREF& ex)
- {
- if (ex.completed () != CORBA::COMPLETED_NO)
- {
- ex._tao_print_exception ("ERROR: Caught unexpected exception:");
- }
-
- // expected exception
- }
- try
- {
- my_foo_ami_->sendc_get_rw_attrib(cb.in());
- ++nr_of_asyn_called;
- }
- catch (const CORBA::INV_OBJREF& ex)
- {
- if (ex.completed () != CORBA::COMPLETED_NO)
- {
- ex._tao_print_exception ("ERROR: Caught unexpected exception:");
- }
-
- // expected exception
- }
- try
- {
- my_foo_ami_->sendc_get_ro_attrib(cb.in());
- ++nr_of_asyn_called;
- }
- catch (const CORBA::INV_OBJREF& ex)
- {
- if (ex.completed () != CORBA::COMPLETED_NO)
- {
- ex._tao_print_exception ("ERROR: Caught unexpected exception:");
- }
-
- // expected exception
- }
- try
- {
- my_foo_ami_->sendc_set_rw_attrib(cb.in(), 0);
- ++nr_of_asyn_called;
- }
- catch (const CORBA::INV_OBJREF& ex)
- {
- if (ex.completed () != CORBA::COMPLETED_NO)
- {
- ex._tao_print_exception ("ERROR: Caught unexpected exception:");
- }
-
- // expected exception
- }
- }
- return 0;
- }
-
- //============================================================
- // Worker thread for synchronous invocations for MyFoo
- //============================================================
- synch_foo_generator::synch_foo_generator (
- ::HelloT::CCM_Sender_Context_ptr context)
- : context_(::HelloT::CCM_Sender_Context::_duplicate (context))
- {
- }
-
- int synch_foo_generator::svc ()
- {
- ACE_OS::sleep (3);
- ::HelloT::MyFoo_var my_foo_ami_ =
- context_->get_connection_run_my_foo ();
-
- if (CORBA::is_nil (my_foo_ami_))
- {
- ACE_ERROR ((LM_ERROR, "ERROR - NO synchronous connection available."));
- return 0;
- }
-
- CORBA::String_var out_str;
- try
- {
- my_foo_ami_->hello (out_str.out ());
- }
- catch (...)
- {
- ACE_ERROR ((LM_INFO, "Exception on sync call"));
- ++nr_of_syn_failed;
- }
- try
- {
- my_foo_ami_->rw_attrib ();
- }
- catch (...)
- {
- ACE_ERROR ((LM_INFO, "Exception on sync call"));
- ++nr_of_syn_failed;
- }
- try
- {
- my_foo_ami_->rw_attrib (0);
- }
- catch (...)
- {
- ACE_ERROR ((LM_INFO, "Exception on sync call"));
- ++nr_of_syn_failed;
- }
- try
- {
- my_foo_ami_->ro_attrib ();
- }
- catch (...)
- {
- ACE_ERROR ((LM_INFO, "Exception on sync call"));
- ++nr_of_syn_failed;
- }
-
- return 0;
- }
-
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- Sender_exec_i::Sender_exec_i (void) :
- asynch_foo_gen(0),
- synch_foo_gen(0)
- {
- }
-
- Sender_exec_i::~Sender_exec_i (void)
- {
- }
-
- // Supported operations and attributes.
-
- // Component attributes and port operations.
-
- // Operations from Components::SessionComponent.
-
- void
- Sender_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx)
- {
- this->ciao_context_ =
- ::HelloT::CCM_Sender_Context::_narrow (ctx);
-
- if ( ::CORBA::is_nil (this->ciao_context_.in ()))
- {
- throw ::CORBA::INTERNAL ();
- }
- }
-
- void
- Sender_exec_i::configuration_complete (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_activate (void)
- {
- this->asynch_foo_gen =
- new asynch_foo_generator (this->ciao_context_.in ());
- asynch_foo_gen->activate (THR_NEW_LWP | THR_JOINABLE, 1);
-
- this->synch_foo_gen =
- new synch_foo_generator (this->ciao_context_.in ());
- synch_foo_gen->activate (THR_NEW_LWP | THR_JOINABLE, 1);
- }
-
- void
- Sender_exec_i::ccm_passivate (void)
- {
- /* Your code here. */
- }
-
- void
- Sender_exec_i::ccm_remove (void)
- {
- if (nr_of_asyn_received > 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: received unexpected asynchronous responses.\n"));
- }
- if (nr_of_asyn_called > 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: unexpectedly succeeded calling asynchronously.\n"));
- }
- if (nr_of_syn_failed > 0)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: unexpected failures calling synchronously.\n"));
- }
-
- delete this->asynch_foo_gen;
- this->asynch_foo_gen = 0;
- delete this->synch_foo_gen;
- this->synch_foo_gen = 0;
- }
-
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::AMI4CCM_MyFooReplyHandler_run_my_foo_i (void)
- {
- }
-
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::~AMI4CCM_MyFooReplyHandler_run_my_foo_i (void)
- {
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::hello (
- const char * /* answer */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::hello: "
- "Unexpected return.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::hello_excep (
- ::CCM_AMI::ExceptionHolder_ptr /*excep_holder*/)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::hello_excep: "
- "Unexpected exception.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_rw_attrib (
- ::CORBA::Short /* rw_attrib */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::get_rw_attrib : "
- "Unexpected return.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /*excep_holder*/)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::get_rw_attrib_excep: "
- "Unexpected exception.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::set_rw_attrib (void)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::set_rw_attrib: "
- "Unexpected return.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::set_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /*excep_holder*/)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::set_rw_attrib_excep: "
- "Unexpected exception.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_ro_attrib (
- ::CORBA::Short /* ro_attrib */)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::get_ro_attrib: "
- "Unexpected return.\n"));
- ++nr_of_asyn_received;
- }
-
- void
- AMI4CCM_MyFooReplyHandler_run_my_foo_i::get_ro_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr /*excep_holder*/)
- {
- // never should come here in this test.
- ACE_ERROR ((LM_ERROR, "ERROR: MyFoo_callback_exec_i::get_ro_attrib_excep: "
- "Unexpected exception.\n"));
- ++nr_of_asyn_received;
- }
-
- extern "C" HELLO_T_SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_HelloT_Sender_Impl (void)
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_NORETURN (
- retval,
- Sender_exec_i);
-
- return retval;
- }
-}
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.h b/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.h
deleted file mode 100644
index bc2f12dc123..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/Sender/HelloT_Sender_exec.h
+++ /dev/null
@@ -1,167 +0,0 @@
-// -*- C++ -*-
-/**
- * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3
- * TAO and the TAO IDL Compiler have been developed by:
- * Center for Distributed Object Computing
- * Washington University
- * St. Louis, MO
- * USA
- * http://www.cs.wustl.edu/~schmidt/doc-center.html
- * and
- * Distributed Object Computing Laboratory
- * University of California at Irvine
- * Irvine, CA
- * USA
- * and
- * Institute for Software Integrated Systems
- * Vanderbilt University
- * Nashville, TN
- * USA
- * http://www.isis.vanderbilt.edu/
- *
- * Information about TAO is available at:
- * http://www.dre.vanderbilt.edu/~schmidt/TAO.html
- **/
-#ifndef CIAO_HELLOT_SENDER_EXEC_4QC1XJ_H_
-#define CIAO_HELLOT_SENDER_EXEC_4QC1XJ_H_
-
-#include /**/ "ace/pre.h"
-
-#include "HelloT_SenderEC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "HelloT_Sender_exec_export.h"
-#include "tao/LocalObject.h"
-#include "ace/Task.h"
-
-namespace CIAO_HelloT_Sender_Impl
-{
-
- /// Worker thread for asynchronous invocations
- class asynch_foo_generator : public virtual ACE_Task_Base
- {
- public:
- asynch_foo_generator (::HelloT::CCM_Sender_Context_ptr context);
-
- virtual int svc (void);
-
- private:
- ::HelloT::CCM_Sender_Context_var context_;
- };
-
- /// Worker thread for synchronous invocations
- class synch_foo_generator : public virtual ACE_Task_Base
- {
- public:
- synch_foo_generator (::HelloT::CCM_Sender_Context_ptr context);
-
- virtual int svc (void);
-
- private:
- ::HelloT::CCM_Sender_Context_var context_;
- };
- /**
- * Component Executor Implementation Class: Sender_exec_i
- */
-
- class Sender_exec_i
- : public virtual Sender_Exec,
- public virtual ::CORBA::LocalObject
- {
- public:
- Sender_exec_i (void);
- virtual ~Sender_exec_i (void);
-
- //@{
- /** Supported operations and attributes. */
-
- //@}
-
- //@{
- /** Component attributes and port operations. */
- //@}
-
- //@{
- /** Operations from Components::SessionComponent. */
- virtual void set_session_context (::Components::SessionContext_ptr ctx);
- virtual void configuration_complete (void);
- virtual void ccm_activate (void);
- virtual void ccm_passivate (void);
- virtual void ccm_remove (void);
- //@}
-
- //@{
- /** User defined public operations. */
- //@}
-
- private:
- ::HelloT::CCM_Sender_Context_var ciao_context_;
- asynch_foo_generator* asynch_foo_gen;
- synch_foo_generator* synch_foo_gen;
-
- //@{
- /** Component attributes. */
- //@}
-
- //@{
- /** User defined members. */
-
- //@}
-
- //@{
- /** User defined private operations. */
-
- //@}
- };
-
-
- class AMI4CCM_MyFooReplyHandler_run_my_foo_i
- : public ::HelloT::CCM_AMI4CCM_MyFooReplyHandler,
- public virtual ::CORBA::LocalObject
- {
- public:
- AMI4CCM_MyFooReplyHandler_run_my_foo_i (void);
- virtual ~AMI4CCM_MyFooReplyHandler_run_my_foo_i (void);
-
- virtual void
- hello (
- const char * answer);
-
- virtual void
- hello_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- get_rw_attrib (
- ::CORBA::Short rw_attrib);
-
- virtual void
- get_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- set_rw_attrib (void);
-
- virtual void
- set_rw_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
-
- virtual void
- get_ro_attrib (
- ::CORBA::Short ro_attrib);
-
- virtual void
- get_ro_attrib_excep (
- ::CCM_AMI::ExceptionHolder_ptr excep_holder);
- };
-
- extern "C" HELLO_T_SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
- create_HelloT_Sender_Impl (void);
- }
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/Plan.cdp b/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/Plan.cdp
deleted file mode 100644
index 0100f817491..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/Plan.cdp
+++ /dev/null
@@ -1,376 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
-<!-- -->
-<Deployment:DeploymentPlan xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <UUID>6D382DAE-9024-4C4D-B91B-A0F9176AFACF</UUID>
-
- <implementation xmi:id="HelloT_ReceiverHomeImplementation">
- <name>HelloT_ReceiverHomeImplementation</name>
- <source/>
- <artifact xmi:idref="HelloT_Receiver_ExecArtifact"/>
- <artifact xmi:idref="HelloT_Receiver_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_Receiver_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.ReceiverArtifacts.Receiver_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_Receiver_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.ReceiverArtifacts.Receiver_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="HelloT_SenderHomeImplementation">
- <name>HelloT_SenderHomeImplementation</name>
- <source/>
- <artifact xmi:idref="HelloT_Sender_ExecArtifact"/>
- <artifact xmi:idref="HelloT_Sender_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_Sender_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.SenderArtifacts.Sender_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_Sender_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.SenderArtifacts.Sender_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <implementation xmi:id="HelloT_AMIHomeImplementation">
- <name>HelloT_AMIHomeImplementation</name>
- <source/>
- <artifact xmi:idref="HelloT_AMI_ExecArtifact"/>
- <artifact xmi:idref="HelloT_AMI_SvntArtifact"/>
- <execParameter>
- <name>component factory</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI4CCM_MyFoo_Connector_Impl</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.AMIArtifacts.AMI_exec</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI4CCM_MyFoo_Connector_AMI4CCM_Connector_Servant</string>
- </value>
- </value>
- </execParameter>
- <execParameter>
- <name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>HelloT.ImplementationArtifacts.AMIArtifacts.AMI_svnt</string>
- </value>
- </value>
- </execParameter>
- </implementation>
-
- <instance xmi:id="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Receiver">
- <name>HelloT.ComponentImplementations.HelloTImplementation.HelloT.Receiver</name>
- <node>Receiver</node>
- <source/>
- <implementation xmi:idref="HelloT_ReceiverHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Sender">
- <name>HelloT.ComponentImplementations.HelloTImplementation.HelloT.Sender</name>
- <node>Sender</node>
- <source/>
- <implementation xmi:idref="HelloT_SenderHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance xmi:id="HelloT.ComponentImplementations.HelloTImplementation.HelloT.AMI">
- <name>HelloT.ComponentImplementations.HelloTImplementation.HelloT.AMI</name>
- <node>Sender</node>
- <source/>
- <implementation xmi:idref="HelloT_AMIHomeImplementation"/>
- <configProperty>
- <name>edu.vanderbilt.dre.DAnCE.InstanceIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>AMI.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>run_asynch_foo_connection</name>
- <deployRequirement>
- <name>edu.dre.vanderbilt.DAnCE.ConnectionType</name>
- <resourceType>Local_Interface</resourceType>
- </deployRequirement>
- <internalEndpoint>
- <portName>sendc_run_my_foo</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Sender" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>ami4ccm_port_ami4ccm_provides</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.AMI" />
- </internalEndpoint>
- </connection>
-
- <!-- THIS CONNECTION IS INTENTIONALLY COMMENTED OUT
- <connection>
- <name>do_foo_connection</name>
- <internalEndpoint>
- <portName>do_my_foo</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Receiver" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>ami4ccm_port_ami4ccm_uses</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.AMI" />
- </internalEndpoint>
- </connection>
- -->
-
- <connection>
- <name>synch_foo_connection</name>
- <internalEndpoint>
- <portName>do_my_foo</portName>
- <provider>true</provider>
- <kind>Facet</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Receiver" />
- </internalEndpoint>
- <internalEndpoint>
- <portName>run_my_foo</portName>
- <provider>false</provider>
- <kind>SimplexReceptacle</kind>
- <instance xmi:idref="HelloT.ComponentImplementations.HelloTImplementation.HelloT.Sender" />
- </internalEndpoint>
- </connection>
-
- <artifact xmi:id="HelloT_AMI_SvntArtifact">
- <name>HelloT.ImplementationArtifacts.AMIArtifacts.AMI_svnt</name>
- <source/>
- <node/>
- <location>HelloT_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI4CCM_MyFoo_Connector_AMI4CCM_Connector_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="HelloT_AMI_ExecArtifact">
- <name>HelloT.ImplementationArtifacts.AMIArtifacts.AMI_exec</name>
- <source/>
- <node/>
- <location>HelloT_conn</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI4CCM_MyFoo_Connector_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="HelloT_Receiver_SvntArtifact">
- <name>HelloT.ImplementationArtifacts.ReceiverArtifacts.Receiver_svnt</name>
- <source/>
- <node/>
- <location>HelloT_Receiver_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="HelloT_Receiver_ExecArtifact">
- <name>HelloT.ImplementationArtifacts.ReceiverArtifacts.Receiver_exec</name>
- <source/>
- <node/>
- <location>HelloT_Receiver_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI_ReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="HelloT_Sender_SvntArtifact">
- <name>HelloT.ImplementationArtifacts.SenderArtifacts.Sender_svnt</name>
- <source/>
- <node/>
- <location>HelloT_Sender_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact xmi:id="HelloT_Sender_ExecArtifact">
- <name>HelloT.ImplementationArtifacts.SenderArtifacts.Sender_exec</name>
- <source/>
- <node/>
- <location>HelloT_Sender_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_HelloT_AMI_SenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
-</Deployment:DeploymentPlan>
diff --git a/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/run_test.pl b/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/run_test.pl
deleted file mode 100755
index c96e71c4088..00000000000
--- a/CIAO/connectors/ami4ccm/tests/NoConnection/descriptors/run_test.pl
+++ /dev/null
@@ -1,243 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::TestTarget;
-
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$DANCE_ROOT = "$ENV{'DANCE_ROOT'}";
-
-$daemons_running = 0;
-$em_running = 0;
-$ns_running = 0;
-
-$nr_daemon = 3;
-@ports = ( 60000, 60001 );
-@iorbases = ( "Sender.ior", "Receiver.ior", "AMI.ior" );
-@iorfiles = 0;
-@nodenames = ( "Sender", "Receiver" );
-
-# ior files other than daemon
-$ior_nsbase = "ns.ior";
-$ior_nsfile = 0;
-$ior_embase = "EM.ior";
-$ior_emfile = 0;
-
-# Processes
-$E = 0;
-$EM = 0;
-$NS = 0;
-@DEAMONS = 0;
-
-# targets
-@tg_daemons = 0;
-$tg_naming = 0;
-$tg_exe_man = 0;
-$tg_executor = 0;
-
-$status = 0;
-$cdp_file = "Plan.cdp";
-
-sub create_targets {
- # naming service
- $tg_naming = PerlACE::TestTarget::create_target (1) || die "Create target for ns failed\n";
- $tg_naming->AddLibPath ('../lib');
- # daemon
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $tg_daemons[$i] = PerlACE::TestTarget::create_target ($i+1) || die "Create target for daemon $i failed\n";
- $tg_daemons[$i]->AddLibPath ('../lib');
- }
- # execution manager
- $tg_exe_man = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n";
- $tg_exe_man->AddLibPath ('../lib');
- # executor (plan_launcher)
- $tg_executor = PerlACE::TestTarget::create_target (1) || die "Create target for executor failed\n";
- $tg_executor->AddLibPath ('../lib');
-}
-
-sub init_ior_files {
- $ior_nsfile = $tg_naming->LocalFile ($ior_nsbase);
- $ior_emfile = $tg_exe_man->LocalFile ($ior_embase);
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]);
- }
- delete_ior_files ();
-}
-
-# Delete if there are any .ior files.
-sub delete_ior_files {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $tg_daemons[$i]->DeleteFile ($iorbases[$i]);
- }
- $tg_naming->DeleteFile ($ior_nsbase);
- $tg_exe_man->DeleteFile ($ior_embase);
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]);
- }
-}
-
-sub kill_node_daemon {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1);
- }
-}
-
-sub kill_open_processes {
- if ($daemons_running == 1) {
- kill_node_daemon ();
- }
-
- if ($em_running == 1) {
- $EM->Kill (); $EM->TimedWait (1);
- }
-
- if ($ns_running == 1) {
- $NS->Kill (); $NS->TimedWait (1);
- }
- # in case shutdown did not perform as expected
- $tg_executor->KillAll ('dance_locality_manager');
-}
-
-sub run_node_daemons {
- for ($i = 0; $i < $nr_daemon; ++$i) {
- $iorbase = $iorbases[$i];
- $iorfile = $iorfiles[$i];
- $port = $ports[$i];
- $nodename = $nodenames[$i];
- $iiop = "iiop://localhost:$port";
- $node_app = $tg_daemons[$i]->GetArchDir("$DANCE_ROOT/bin/") . "dance_locality_manager";
-
- $d_cmd = "$DANCE_ROOT/bin/dance_node_manager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -n $nodename=$iorfile -t 30 --domain-nc corbaloc:rir:/NameService";
-
- print "Run dance_node_manager with $d_param\n";
-
- $DEAMONS[$i] = $tg_daemons[$i]->CreateProcess ($d_cmd, $d_param);
- $DEAMONS[$i]->Spawn ();
-
- if ($tg_daemons[$i]->WaitForFileTimed($iorbase,
- $tg_daemons[$i]->ProcessStartWaitInterval ()) == -1) {
- print STDERR
- "ERROR: The ior $iorfile file of node daemon $i could not be found\n";
- for (; $i >= 0; --$i) {
- $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1);
- }
- return -1;
- }
- }
- return 0;
-}
-
-create_targets ();
-init_ior_files ();
-
-# Invoke naming service
-
-$NS = $tg_naming->CreateProcess ("$TAO_ROOT/orbsvcs/Naming_Service/tao_cosnaming", " -ORBEndpoint iiop://localhost:60003 -o $ior_nsfile");
-
-print STDERR "Starting Naming Service with -ORBEndpoint iiop://localhost:60003 -o ns.ior\n";
-
-$ns_status = $NS->Spawn ();
-
-if ($ns_status != 0) {
- print STDERR "ERROR: Unable to execute the naming service\n";
- kill_open_processes ();
- exit 1;
-}
-
-if ($tg_naming->WaitForFileTimed ($ior_nsbase,
- $tg_naming->ProcessStartWaitInterval ()) == -1) {
- print STDERR "ERROR: cannot find naming service IOR file\n";
- $NS->Kill (); $NS->TimedWait (1);
- exit 1;
-}
-
-$ns_running = 1;
-# Set up NamingService environment
-$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService";
-
-# Invoke node daemon.
-print "Invoking node daemon\n";
-$status = run_node_daemons ();
-
-if ($status != 0) {
- print STDERR "ERROR: Unable to execute the node daemon\n";
- kill_open_processes ();
- exit 1;
-}
-
-$daemons_running = 1;
-
-# Invoke execution manager.
-print "Invoking execution manager (dance_execution_manager.exe) with -e$ior_emfile\n";
-$EM = $tg_exe_man->CreateProcess ("$DANCE_ROOT/bin/dance_execution_manager",
- "-e$ior_emfile --domain-nc corbaloc:rir:/NameService");
-$em_status = $EM->Spawn ();
-
-if ($em_status != 0) {
- print STDERR "ERROR: dance_execution_manager returned $em_status";
- exit 1;
-}
-
-if ($tg_exe_man->WaitForFileTimed ($ior_embase,
- $tg_exe_man->ProcessStartWaitInterval ()) == -1) {
- print STDERR
- "ERROR: The ior file of execution manager could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-$em_running = 1;
-
-# Invoke executor - start the application -.
-print "Invoking executor - launch the application -\n";
-
-print "Start dance_plan_launcher.exe with -x $cdp_file -k file://$ior_emfile\n";
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-x $cdp_file -k file://$ior_emfile");
-
-$pl_status = $E->SpawnWaitKill ($tg_executor->ProcessStartWaitInterval ());
-
-if ($pl_status != 0) {
- print STDERR "ERROR: dance_plan_launcher returned $pl_status\n";
- kill_open_processes ();
- exit 1;
-}
-
-for ($i = 0; $i < $nr_daemon; ++$i) {
- if ($tg_daemons[$i]->WaitForFileTimed ($iorbases[$i],
- $tg_daemons[$i]->ProcessStopWaitInterval ()) == -1) {
- print STDERR "ERROR: The ior file of daemon $i could not be found\n";
- kill_open_processes ();
- exit 1;
- }
-}
-
-print "Sleeping 20 seconds to allow task to complete\n";
-sleep (20);
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file\n";
-
-$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher",
- "-k file://$ior_emfile -x $cdp_file -s");
-$pl_status = $E->SpawnWaitKill ($tg_executor->ProcessStartWaitInterval ());
-
-if ($pl_status != 0) {
- print STDERR "ERROR: dance_plan_launcher returned $pl_status\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Executor returned.\n";
-print "Shutting down rest of the processes.\n";
-
-delete_ior_files ();
-kill_open_processes ();
-
-exit $status;