summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Notify/Subscribe/main.cpp')
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/main.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp b/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
new file mode 100644
index 00000000000..05c916eab0d
--- /dev/null
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
@@ -0,0 +1,29 @@
+// -*- C++ -*-
+// $Id$
+
+#include "Subscribe.h"
+
+int
+main (int argc, char *argv [])
+{
+ Subscribe client;
+
+ try
+ {
+ client.init (argc, argv); //Init the Client
+
+ client.run ();
+ }
+ catch (const CORBA::UserException& ue)
+ {
+ ue._tao_print_exception ("TLS_Client user error: ");
+ return 1;
+ }
+ catch (const CORBA::SystemException& se)
+ {
+ se._tao_print_exception ("Filter system error: ");
+ return 1;
+ }
+
+ return 0;
+}