
 |
Technical Articles & Tips |
|
This article is a tutorial on how to use the new JXTA Socket API in JXTA 2.0. I'll also demonstrate a simple method for locating a person to chat with using a hash ID. With these two items and a little glue, you can create many different types of useful P2P applications.
Peer-to-Peer (P2P) is on developers' minds lately. Many people, however, have avoided the existing P2P solutions because they are usually single-purpose (limited to file sharing or chat, for example), and they lack standards and industry support. But with Sun's introduction of JXTA, P2P has grown up and graduated from a curiosity to a potent technology for delivering practical solutions to common business problems. JXTA is a set of protocols with revolutionary capabilities for the application developer.
Part 1 introduces the concept of peer-to-peer computing and includes some example code for a JMS application, JMSChat, to illustrate how you can develop a form of simple peer-to-peer application with existing messaging technology.
Part 2 compares the peer-to-peer (P2P) features provided by the initial implementation of Project JXTA technology with those provided by the JavaTM Message Service (JMS).
 |
 |