Skip to main content

Unable to retrieve Pipe Adv

1 reply [Last post]
mick_000
Offline
Joined: 2009-01-22
Points: 0

Hi. I am having trouble in retrieving pipe adv. Here is the pblm:

Peer A creates a pipe adv and publishes it. The following is the piece of code:

PipeAdvertisement pipeAdv =

(PipeAdvertisement)AdvertisementFactory.newAdvertisement(PipeAdvertisement.getAdvertisementType());

pipeAdv.setPipeID((ID)IDFactory.newPipeID(prgp.getPeerGroupID()));
pipeAdv.setType(PipeService.UnicastType);
discSvc.remotePublish(pipeAdv,discSvc.ADV);

Now,Peer B is unable to retrieve the pipe adv from its local cache. The piece of code i used is :

en=discSvc.getLocalAdvertisements(DiscoveryService.ADV,null,null);
When I checked the local cache in the jxta-Net Group folder and in the advertisements file i found the pipe id and the type in that.

But still i am unable to retrieve the adv. What could be the reason for it?? Can someone suggest a solution???? Plz be quick.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mick_000
Offline
Joined: 2009-01-22
Points: 0

Friends, can someone plz tell as to what the problem is with the above mentioned post and can someone suggest an alternate method to it. Plz be quick.