3 # ************************************************************
4 # Description : Front end for the Notify Service Monitor
5 # Author : Chad Elliott
6 # Create Date : 7/17/2007
7 # ************************************************************
9 # ************************************************************
11 # ************************************************************
14 if (!defined $ENV{OPALORB_ROOT
}) {
15 print STDERR
"You must set the OPALORB_ROOT environment variable ",
16 "to the full path of opalORB.\n";
21 # ************************************************************
23 # ************************************************************
32 use lib
"$ENV{OPALORB_ROOT}";
33 use lib
"$ENV{OPALORB_ROOT}/Naming";
35 use CosNotification
::NotificationServiceMonitorControl
;
37 my($basePath) = $FindBin::Bin
;
39 $basePath = File
::Spec
->rel2abs(dirname
($0)) if ($basePath eq '');
40 $basePath = VMS
::Filespec
::unixify
($basePath);
42 unshift(@INC, $basePath . '/modules');
44 require MonitorControl
;
46 # ************************************************************
48 # ************************************************************
51 my($orb) = CORBA
::ORB_init
(\
@ARGV);
53 my($loc) = 'corbaname:rir:#TAO_MonitorAndControl';
54 $loc = $ARGV[0] if (defined $ARGV[0]);
56 my($monitor) = new MonitorControl
($orb, $loc);
59 catch CORBA
::SystemException with
{
63 catch Error
::Simple with
{
65 print STDERR
"Exception: $ex\n";