[omniORB] problem with omninotify
Janet Tvedt
tvedt@noao.edu
Tue Dec 10 17:43:01 2002
Julien,
You could try putting the following statement before the narrow:
cout << orb->object_to_string(objPtr);
Then run catior on the printed IOR to see exactly what you are trying to
narrow.
All you need to compile is the Notification Service IDL and the
stubs/skeleton code needed by your application. I have no experience
programming with Win32 so I can't say whether there is some
environmental parameter you haven't defined.
Janet Tvedt
On Tue, 2002-12-10 at 09:25, julien piaser wrote:
> 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
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>