Sun Java Solaris Communities My SDN Account Join SDN
 
Books & Authors

Early Adopter JXTA: Peer-to-Peer Computing with Java

 

Books Index



Chapter 2: JXTA Basics

Book cover The JDC is pleased to present one chapter from Early Adopter JXTA by Sing Li, published by Wrox Press, Inc.

About the Book

JXTA is a new technology that enables us to build peer-to-peer systems - systems that enable computers to discover one another and co-operate together across the Internet. This kind of interaction characterizes some of the most interesting networked applications that have appeared in the last year: Napster, Gnutella, Morpheus, and their relatives. In these systems, a user installs a client program, which discovers other installed clients on other machines, and communicates with them - allowing the sharing of files between computers. This peer-to-peer architecture is a completely new paradigm in software design, representing a totally different approach to the standard client-server frameworks used in almost all the distributed systems that currently exist.

JXTA aims to provide a set of technologies that allow programmers to develop clients and services that can interact in this way, without having to implement all of the elements that make up such a system themselves. Aspects such as discovery of peers, advertising presence, penetrating firewalls, and transferring data, which are common to all peer-to-peer applications, are handled by a set of standard libraries that are available to a JXTA application.

Early Adopter JXTA teaches the experienced developer all they need to know to be able to play confidently with JXTA. It will show how to use JXTA as the foundation for developing a peer-to-peer application, and in the process explain how to think and design in a peer-to-peer way, and hopefully inspire you to come up with the ideas for the next generation of peer-to-peer applications. The code in this book makes use of the JXTA reference implementation, and is written in Java, although the principals discussed will be just as relevant to other implementations in other languages.

Take the Quiz

About the Chapters

Chapter 2, "JXTA Basics," examines the basic components of JXTA, and shows how they are implemented on top of interoperable protocols. It describes how to configure the JXTA platform for peers that are either on the Internet or an Intranet, and how to use the JXTA shell to perform basic interaction between peers. The most frequently used API packages within the Java implementation of JXTA are also covered, as well as how to perform discovery of peers, peer groups, and pipes, how to create and work with advertisements, how to manipulate XML-based messages, and how to create and work with JXTA pipes.

Ordering Information

Wrox.com
Amazon.com
Barnes & Noble

About the Author

Sing Li is an active author, consultant, and entrepreneur. He has written for popular technical journals and is the creator of the "Internet Global Phone," one of the very first Internet phones available. His wide-ranging consulting expertise spans Internet and Intranet systems design, distributed architectures, digital convergence, embedded systems, real-time technologies, and cross platform software design. He also participates in the Jini and JXTA communities.

Chapter 2: JXTA Basics


Reader Feedback
Excellent   Good   Fair   Poor  

If you have other comments or ideas for future technical content, please type them here:

Comments:

If you would like a reply to your comment, please submit your email address:
Note: We may not respond to all submitted comments.


Have a question about Java programming? Use Java Online Support.