[omniORB] problem with omninotify
julien piaser
jpiaser@ifrance.com
Tue Dec 10 16:27:02 2002
I did try... example clients are working fine. But they are on the linux
platform.
To go further, I maid a simple "main" on Win32, as simple as can be :
to try connecting to the EventChannel:EventChannel. To do so, I just
used the same code as in the sample clients to connect to the naming
service and to the channel... it goes in the catch(...) part.
Maybe I should try porting my code to linux...
Did I forget to add anything to my "omniorb v304" on Win32 ? Do I have
to compile one of the NotificationService modules ?
regards,
Julien
-----------------------
Did you try the example clients that come with omniNotify?
-- Bob
-----Original Message-----
From: omniorb-list-admin@omniorb-support.com
[mailto:omniorb-list-admin@omniorb-support.com]On Behalf Of julien
piaser
Sent: Tuesday, December 10, 2002 4:25 AM
To: omniorb-list@omniorb-support.com
Subject: [omniORB] problem with omninotify
Hi all,
I'm having some problems trying to connect from my Win32 c++ application
to the OmniNotify default channel. I've got an exception while trying to
"narrow" the channel pointer, and just can't even see the exception
type.
My client application works on Win32 platform, and my omniorb naming and
notification services are on Linux (RH7.2). Both omniorb versions are
3.0.4.
Looking in the naming service repository with nameclt, I can see
EventChannel.EventChannel in...
Here is the code I use :
// obtaining reference on the default channel
CosNaming::Name name;
name.length(1);
name[0].id = CORBA::string_dup("EventChannel");
name[0].kind = CORBA::string_dup("EventChannel");
CORBA::Object_ptr objPtr = NamingService::GetObjectReference(orb,name);
CosNotifyChannelAdmin::EventChannel_var channel
= CosNotifyChannelAdmin::EventChannel::_narrow(objPtr);
(where NamingService is a special object for naming service mangement -
no problem with that)
Here is the command line I use to launch the notification service :
./notifd -c /usr/local/omni/src/services/omniNotify/channel.cfg
(I also tried ./notifd).
Any idea ?
Thanks, regards,
Julien
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France