[JXTA discuss] Project Proposal: JxCommand - The Command Design Pattern applied to JXTA

"Michel Polet" <[email protected]> Sat, 14 May 2005 14:41:04 +0200
Newsgroups gmane.comp.java.jxta.general,gmane.comp.java.jxta.devel
Message-ID <[email protected]>
JxCommand - The Command Design Pattern applied to JXTA.

JxCommand is a framework to implement the Command Design Pattern
over JXTA.

The Command Design Pattern allows to easily implement some algorithms
as a series of commands, such as: command processors (the JXTA Shell),
client/server processing (this includes of course P2P), remote proccessing,
if you can express your problem as a series of commands.

The framework expects the commands to be serializable java classes,
not XML messages. It is therefore only meant for JXTA application
that do not have to interact with Peers written in other programming
languages. This is its main limitation, but this also make writing
JXTA application in java much easier.

I have already implemented it in my project
"Jxdbc, a JDBC proxy driver for JXTA (see http://jxdbc.jxta.org.)

Jxdbc is based on that design pattern and I have already referred
some of you to its source (see
http://jxdbc.jxta.org/servlets/ProjectDocumentList).

You have then to extract the relevant classes and possibly remove
some Jxdbc dependencies.

I intend to do this work for you by putting these classes in their own
project and make the framework totally independent from Jxdbc.

This project will also serve as a base for a possible tutorial.



Michel Polet