[omniORB] problem with omninotify

julien piaser jpiaser@ifrance.com
Tue Dec 10 09:26:01 2002


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