Skip to main content

create JxtaBiDiPipe takes long time

5 replies [Last post]
littledavid2
Offline
Joined: 2008-03-04
Points: 0

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.
andrewwang
Offline
Joined: 2008-03-31
Points: 0

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.

littledavid2
Offline
Joined: 2008-03-04
Points: 0

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

mcumings
Offline
Joined: 2004-04-22
Points: 0

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:

http://wiki.java.net/bin/view/Jxta/PrivateJxtaNetworks

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.)?

dwilches
Offline
Joined: 2008-05-10
Points: 0

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 ?

Thanks
dwilches (at) gmail (dot) com

hamada
Offline
Joined: 2003-06-12
Points: 0

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