Project JXTA Tutorial (Updated 6/10/01)

News: New Chat Example from Nelson Minar !!!!

The Chat example article is online here:

http://www.openp2p.com/pub/a/p2p/2001/06/05/jxtachat.html

The source code for the tutorial code is here:

http://www.clip2.com/jxta_chat.html


Readings

Project JXTA: Setting the P2P Tone (Contributed by Chris Genly)

Examples

EX1:  Creating a new JXTA Service

The following example is a simple client/server JXTA applications. The
Server application creates a Service Advertisement and publishes it in
the NetPeerGroup. The Server application starts the Service, by creating
an input pipe to receive messages from clients. The service loops waiting for messages to arrive. The Client application discovers the service advertisement and creates an input pipe to connect to the service, and send a message to the service.

This example demonstrates how to run a new application on the JXTA platform.  Create a new service and  its service advertisement. Publish and search for advertisements via the Discovery service. Create a pipe via the Pipe service and send messages through a pipe.

Browse Source
Download
 

Existing Developer Resources

The Platform API javadoc can be found on-line at: http://platform.jxta.org/java/api/overview-tree.html
 

 

Existing projects
 

shell.jxta.org : Every Shell command is an independent application that demonstrates how to use some of the JXTA API's : peers, groups : discovery API, mkpgrp, join, leave : Peer Group API, mkadv : Advertisement API, mkpipe, send, recv, put, get : Pipe API, talk : simple chat API
 

 

jxta-wire.jxta.org: chat room, 1 to many pipes

jxta-xml-rpc.jxta.org: gateway between JXTA pipes and XML-RPC

instantp2p.jxta.org:UI, discovery and peer group
 

 

Some other examples can be found at the www.oreilly.com site
 

 

http://www.openp2p.com/pub/a/p2p/2001/04/25/jxta.html
 

 

http://www.oreillynet.com/pub/a/onjava/2001/04/25/jxta.html