The Source for Java Technology Collaboration


-- Main.mpzarde - 18 Oct 2005

In some cases in may be necessary incorporate the cajo project into an existing

J2EE
project so that one can re-use existing objects and classes.

In such a scenario it would be nice to have a servlet load and configure the cajo

ItemServer
at the same time the
J2EE
application loads.

This is accomplished by using the

CajoServlet
wrapper which loads a cajo configuration from xml and bind as set of items to the
ItemServer
.

Installation

These steps assume that you have a

J2EE
server available along with appropriate jars to build a
J2EE
project. Specifically you will require a
HTTPServlet
implementation and a
DomParser
implementation. The current code was tested against
OC4J
and
Xerces
.

  • Download the CajoServlet Archive
  • Unzip the archive into your source tree
  • Compile, making sure that your classes end up in the WEB-INF/classes folder
  • Create a cajo servlet config file (see cajo.xml in archive) and deploy into your runtime environment in WEB-INF/classes
  • Modify your web.xml (see sample in archive) to load the cajo servlet
  • Restart your server and the
    CajoServlet
    should automatically configure and start the cajo
    ItemServer

Roadmap

  • Add support to start a codebase server from config file
  • Add support for three parm binding i.e.
    ItemServer
    .bind(item, name, proxy)
  • Other cool or useful stuff that comes along

Topic CajoServlet . { Edit | Ref-By | Printable | Diffs r5 < r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r5 - 04 Aug 2007 - 22:59:33 - JohnCatherino
Parents: WebHome > ThecajoProject