Skip to main content

[Beginner] Help with Relays...

3 replies [Last post]
keyboarder09
Offline
Joined: 2009-08-17
Points: 0

Hi guys.

I'm starting to work with JXTA.

I have some doubts and I would like to ask you for some help:

My application is based in a share of XML documents. The peers will not be in
a local network, they would be spread over the internet.

1) Am I need to use a Relay peer?
2) How much relays are necessary?
3) A peer can become a relay dinamically?
4) A peer can act as rendezvous and relay at same time?
5) Which protocol is recommended to use? TCP or HTTP?

If someone have some examples codes I would be very grateful.

Sorry for my english, and for the quantity of doubts.

Thanks in advance.

Regards.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
keesp
Offline
Joined: 2007-05-22
Points: 0

A few answers ;)

1) Am I need to use a Relay peer?

A relay peer is only really needed when the network you work on is blocking access to other peers, I believe. Usually you will need one or a few rendez-vous peers that can connect beyond your local network, while others in the network may be an (full-featured) Edge peer.

2) How much relays are necessary?

see above

3) A peer can become a relay dinamically?

I'm not sure, but I don't think so.

4) A peer can act as rendezvous and relay at same time?

yes

5) Which protocol is recommended to use? TCP or HTTP?

Typically you don't need to worry about the chosen protocols, because JXTA takes care of that for you. HTTP is used to 'jump over' firewalls,

I

If you're planning to start with JXTA then the documentation should provide good examples. If you want a more thorough and up-to-date coverage of networking issues, I can recommend : "Practical JXTA" from Jérôme Verstrynge. A bit expensive but worth it, as it covers more network settings that are not taken up in the default documentation

Kees

keyboarder09
Offline
Joined: 2009-08-17
Points: 0

Thank you so much [b]keesp[/b]!

I'll try to find this book!

Best regards!

keesp
Offline
Joined: 2007-05-22
Points: 0

No worries!

If you can't afford the book, or don't want to wait, you might want to try:

http://www.brendonwilson.com/projects/jxta-book/

It's a free downloadable PDF.

Do not be tempted to buy older books (pre-2.5.0) because you'll end up working with a lot of troubles...

good luck

Kees