| |
| META TOPICPARENT | name="ThecajoProject" |
-- Main.mpzarde - 18 Oct 2005 |
|
< < | In some cases in may be necessary incorporate cajo into an existing j2ee project so that one can re-use existing objects and classes. |
> > | In some cases in may be necessary incorporate cajo 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 as when the application loads. |
> > | 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
|