Skip to main content

how to create an output without getting a pipeadvertisement

1 reply [Last post]
luimen
Offline
Joined: 2006-06-29
Points: 0

hello ppl!
i'm developing a system based on jxta.

actually i've two clients, say A and B.

A creates an input and an output pipe and publishes the input pipe advertisement.

B initially creates its inputpipe and starts asking for A's adv.
when B receives A's adv, it creates an output pipe so he can communicate to A. As soon as the pipe is resolved, B sends to A its input pipe id/name.

A Gets B's input pipe values and builds a PipeAdvertisement through the AdvertisementFactory.
A now tries to create an output pipe to B, but it never gets resolved. WHY?

if i force A to request B's adv, everything goes well. obviously i've checked the values B sends to A.
It seems that A must receive at least one adv from B before being able to resolve B's pipe.

hope to be clear enough. thanks in advantage for any advice!

Message was edited by: luimen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tra
Offline
Joined: 2003-06-16
Points: 0

> hello ppl!
> i'm developing a system based on jxta.
>
> actually i've two clients, say A and B.
>
> A creates an input and an output pipe and publishes
> the input pipe advertisement.
>
> B initially creates its inputpipe and starts asking
> for A's adv.
> when B receives A's adv, it creates an output pipe so
> he can communicate to A. As soon as the pipe is
> resolved, B sends to A its input pipe id/name.
>
> A Gets B's input pipe values and builds a
> PipeAdvertisement through the AdvertisementFactory.
> A now tries to create an output pipe to B, but it
> never gets resolved. WHY?
The typical problems are either RDV configuration or listening to the wrong pipe ID. Your peers need to be connected to a RDV before issueing pipe resolution if
they are not in the same subnet.
>
> if i force A to request B's adv, everything goes
> well. obviously i've checked the values B sends to
> A.
> It seems that A must receive at least one adv from B
> before being able to resolve B's pipe.
Do you wait for the RDV connection event before trying
to resolve a pipe ?

Hth,

B.
>
> hope to be clear enough. thanks in advantage for any
> advice!
>
>
> Message was edited by: luimen