Hello! I have a problem with reconnection...

"Rodney Eng" <[email protected]> Thu, 7 Dec 2006 13:55:52 -0500
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
------=_Part_34889_5634272.1165517752418
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

I'm currently working with a group on a prototype secure P2P file sharing
system as an academic project.
We're working with JXTA through the EZEL/JAL lib, though not purely; there
seem to be some problems with the JAL libraries (for instance, one of the
JAL EZMinimalPeer() constructors forgets to add the peer as a listner on
incoming message events, something that befuddled us for some time), so
we've tried to use JAL where it works and where it doesn't, we delve deeper
into the underlying JXTA code to get things done.

For testing, I've set up one copy of our program running on my desktop and
one on my laptop (they're not on the same subnet, BTW; one is running on
Time Warner cable, the other is hooked into a campus wireless network) with
the desktop as a rendezvous peer and the laptop as an edge peer.  When run
for the first time (i.e. without having any configuration files in place),
everything seems to work.  The laptop finds the desktop and I can exchange
messages between the two computers; I've been able to send messages
containing books from Project Gutenberg from one computer to the other
without that much trouble.

However, I get problems with I halt the program on the laptop.  First, the
desktop doesn't realize the laptop is gone, and second, when I bring the
program back online on the laptop and try to send a message, the desktop
receives the message and responds, but the laptop doesn't receive the
message response sent by the desktop.  If I bring both computers offline and
turn them back on with the configuration files created in the initial
session, then they can't exchange messages at all.  Nothing seems to cure
this besides completely wiping out the .jxta configuration folder, which is
troubling.
I've been doing some research on this problem, and I'm guessing, does this
have to do with the Peer and Pipe Advertisements for peers and their pipes
going stale?  As in, even though a peer goes offline, all the other
computers in the network still have its advertisements.  Thus, they still
think it's online, and when it comes back online for real and they try to
send it a message, the message gets routed to a stale pipe advertisement,
never making it to its intended recipient?
If I'm right, how could I fix this?  Set the advertisement lifetime lower?
If I do that, do I need threads constantly republishing the advertisements
for a peer?

Secondly, could someone give me an overview of the security features of
JXTA?  Generally, how could I get peers to authenticate with each other to
exchange messages securely?

Thank you all very much for your help!

- Rodney Eng, Cornell University

------=_Part_34889_5634272.1165517752418
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,<br><br>I'm currently working with a group on a prototype secure P2P file sharing system as an academic project.<br>We're working with JXTA through the EZEL/JAL lib, though not purely; there seem to be some problems with the JAL libraries (for instance, one of the JAL EZMinimalPeer() constructors forgets to add the peer as a listner on incoming message events, something that befuddled us for some time), so we've tried to use JAL where it works and where it doesn't, we delve deeper into the underlying JXTA code to get things done.
<br><br>For testing, I've set up one copy of our program running on my desktop and one on my laptop (they're not on the same subnet, BTW; one is running on Time Warner cable, the other is hooked into a campus wireless network) with the desktop as a rendezvous peer and the laptop as an edge peer.&nbsp; When run for the first time (
i.e. without having any configuration files in place), everything seems to work.&nbsp; The laptop finds the desktop and I can exchange messages between the two computers; I've been able to send messages containing books from Project Gutenberg from one computer to the other without that much trouble.
<br><br>However, I get problems with I halt the program on the laptop.&nbsp; First, the desktop doesn't realize the laptop is gone, and second, when I bring the program back online on the laptop and try to send a message, the desktop receives the message and responds, but the laptop doesn't receive the message response sent by the desktop.&nbsp; If I bring both computers offline and turn them back on with the configuration files created in the initial session, then they can't exchange messages at all.&nbsp; Nothing seems to cure this besides completely wiping out the .jxta configuration folder, which is troubling.
<br>I've been doing some research on this problem, and I'm guessing, does this have to do with the Peer and Pipe Advertisements for peers and their pipes going stale?&nbsp; As in, even though a peer goes offline, all the other computers in the network still have its advertisements.&nbsp; Thus, they still think it's online, and when it comes back online for real and they try to send it a message, the message gets routed to a stale pipe advertisement, never making it to its intended recipient?
<br>If I'm right, how could I fix this?&nbsp; Set the advertisement lifetime lower?&nbsp; If I do that, do I need threads constantly republishing the advertisements for a peer?<br><br>Secondly, could someone give me an overview of the security features of JXTA?&nbsp; Generally, how could I get peers to authenticate with each other to exchange messages securely?
<br><br>Thank you all very much for your help!<br><br>- Rodney Eng, Cornell University<br>

------=_Part_34889_5634272.1165517752418--