Is it true that JXTA peers in a WAN environment take more time to discover each other?
Thanks for the info. I just wanted to know as to how long approximately should i wait for peers to get discovered after configuring(not in LAN)?
I`d say under 30 seconds. For my toy application, using the public network with multicast off, it takes much less than that... under 5-10 seconds.
You could also use a lock system and unlock when the discovery event comes.
If you need a timeout system, I think 60 seconds would be a safe bet.
Well, normally that happens to any application/protocol that is run outside of a LAN.
In LAN you have high-speed connections and not a big need for routing since your destinations are reachable within one hop. (wire-to-wire or wire-switch-wire).
In WAN(or in-the-wild), you have multiple problems like routing, multiple hops between source and destination, various network limitations, etc.
It is normal that any network operation in WAN will be performed noticeably slower than LAN or even localhost, this including peer discovery.
This is a basic network fact. If you were talking about something else, please describe better your question.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.