|
Replies:
1
-
Last Post:
Jul 14, 2006 3:54 AM
by: tra
|
|
|
|
|
|
|
how to create an output without getting a pipeadvertisement
Posted:
Jun 29, 2006 10:12 AM
|
|
|
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
|
|
|
|
|
|
|
Re: how to create an output without getting a pipeadvertisement
Posted:
Jul 14, 2006 3:54 AM
in response to: luimen
|
|
|
> 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
|
|
|
|
|