Skip to main content

create JxtaBiDiPipe takes long time

5 replies [Last post]
Joined: 2008-03-04

I use the following line to create a bi-directional pipe:

pipe = new JxtaBiDiPipe(peerGroup, pipeAdvertisement, 200000, null, true);

If I set the time out low, e.g. 4000, I can only manage to connect to peer within LAN.

To connect to peer outside my LAN, I set the time out very high e.g. 200000, then it can success.

Is there anyway to lower the time out for pipe creation? i.e. make the pipe creation faster.

Any help is most appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-03-31

it only takes few seconds to connect in my own jxta system. I assume you use the default jxta rendvrous peer which is too slow. Because I used the default one before, and got the similar result.

So I think the solution is your own jxta system.

Joined: 2008-03-04

How do you set your own jxta system? Can elaborate?

Joined: 2004-04-22

I believe Andrew is referring to using a private JXTA network by defining a non-default net peer group. The following URL discusses how to do this:

Can you describe further how you are setting up your peer? Are you waiting for a rendezvous connection before attempting to create the pipes? what mode is your peer running in (e.g., ADHOC, EDGE, etc.)?

Joined: 2008-05-10

I have the same problem.

I already tried to create a private Jxta Network by specifying the Infrastructure Id, but it don0t work for me.

Any idea what goes wrong with JxtaBiDiPipe ?

dwilches (at) gmail (dot) com

Joined: 2003-06-12

I think the issue is manifestation of direct messenger support by the bidi pipes. It will attempt use direct messengers using physical addresses, which must fail prior to trying virtual addresses. File a bug