The Artima Developer Community
Sponsored Link

Jini Forum
How to receive notifications from Reggie

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bruno Antunes

Posts: 1
Nickname: bantunes
Registered: Jun, 2004

How to receive notifications from Reggie Posted: Jun 28, 2004 1:32 PM
Reply to this message Reply
Advertisement
I am trying to receive notifications from ServiceRegistrar with no sucess. Having my service registered in the lookup service, implementing RemoteEventListener my method notify(RemoteEvent theEvent)is never called

I am registring wit notification with the follwing pseudo code:


RemoteEventListener proxy = ... (returned by exporter.export(myService)
ServiceRegistrar reggie = ...
ServiceTemplate AVDC_TPL = ....
final int TRANSITION = ServiceRegistrar.TRANSITION_MATCH_MATCH | ServiceRegistrar.TRANSITION_MATCH_NOMATCH | ServiceRegistrar.TRANSITION_NOMATCH_MATCH;

reggie.notify(AVDC_TPL, TRANSITION , proxy, null, Lease.FOREVER);

When running my service and looking in the logs for the reggie the notifications are suposed to be called:

Jun 28, 2004 7:20:14 PM com.sun.jini.reggie.RegistrarImpl$EventTask run
FINE: notifying listener Proxy[IService,BasicInvocationHandler[BasicObjectEndpoint[aa4ebd91-7075-4fcf-8e 86-9df3b3901c35,TcpEndpoint[192.168.29.53:24409]]]] of event 0

But my remote notify method is never called

Using jini 2.0_002 under linux

Topic: jeri and j2me Previous Topic   Next Topic Topic: New Jini Stuff

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use