RE: [JXTA discuss] How do I manually start a resolver service

"Raymond Gao" <[email protected]> Thu, 31 Mar 2005 20:58:28 -0600
Newsgroups gmane.comp.java.jxta.general
Message-ID <[email protected]>
Thanks alot,

But, it still does not work. I am still getting the no SRDI error.

So, I am attaching the code here (3 files). "A" lookup "BService"
implemented by "Bimpl" class. It is quite simple. But, I just don't know
where is the bug.

<INFO  2005-03-31 20:52:08,921 10::createGroup:153> Creating newPeerGroup
<WARN  2005-03-31 20:52:08,968 ResolverServiceImpl::processSrdi:1051> No
srdi handler registered :urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000305
----> <INFO  2005-03-31 20:52:09,000 10::<init>:55> ***B constructor
called.***
<INFO  2005-03-31 20:52:09,000 10::init:128> init() method on B has been
called
....
<WARN  2005-03-31 20:52:09,031
DiscoveryServiceImpl::getRemoteAdvertisements:291> resolver has not started
yet, query discarded.
----> B.print() has been called.
<WARN  2005-03-31 20:52:09,078 ResolverServiceImpl::processSrdi:1051> No
srdi handler registered :urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000305

Ray Gao
-----Original Message-----
From: Mohamed Abdelaziz [mailto:[email protected]] 
Sent: Wednesday, March 30, 2005 5:05 PM
To: [email protected]; [email protected]
Subject: Re: [JXTA discuss] How do I manually start a resolver service

If your service relies on other services to be available, then it should 
return START_AGAIN_STALLED to indicate to the group that it should be 
called again, it should return START_AGAIN_STALLED until the required 
services have started, after which it should return START_OK.  The 
service should also postpone any calls to the required service until 
such services have started.

Also the ResolverService has always been part the JXTA group spec 
definition (1.0 through 2.x), and have always been started unless 
explicitly removed from a group definition.

Mohamed



    public int startApp(String[] arg) {
        resolver = group.getResolverService();

        if (null == resolver) {
            if (LOG.isEnabledFor(Level.WARN)) {
                LOG.warn("Stalled until the resolver service");
            }
            return Module.START_AGAIN_STALLED;
        }



[email protected] wrote:

> Hi,
>  
> I have created a JXTA service and added it to a new peergroup and 
> started that peergroup. Then, I successfully lookupService(new 
> service). The purpose of the new services is to pass messages between 
> two peers. 
>  
> However, message are lost. I guess that the resolver services is not 
> started on the new peergroup that I created. see message.
>  
> <WARN  2005-03-30 15:49:21,152 
> DiscoveryServiceImpl::getRemoteAdvertisements:291> resolver has not 
> started yet, query discarded.
>  
> <WARN  2005-03-30 15:58:40,788 ResolverServiceImpl::processSrdi:1051> 
> No srdi handler registered 
> :urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000305
>  
> But, I don't know how to manually started the ResolverService on a new 
> peergroup. Or, that may not be the problem. Does anyone have good 
> ideas or explainations for it.
>  
> Thanks,
>  
> -Ray
>  
>  



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]