It has been tested with Apache Tomcat versions 5.5 and 6.0. Before running this sample application, you must have a JPPF server and at least one node running.
For information on how to set up a node and server, please refer to the JPPF documentation.
Once you have a server and node, from a command prompt, perform the following steps:
- configure the application settings, by editing the configuration files (JPPF and logging) in the TomcatPort/src/java folder
- from a shell or command prompt, type: "ant build". This will build a WAR file that embeds a JPPF client, in the TomcatPort/build folder.
- deploy the WAR file to Tomcat (usually by copying it to TOMCAT_HOME/webapps)
- start Tomcat
If your Tomcat installation is local and uses the default port, you can go directly to this URL: http://localhost:8080/jppftest Integration with the Tomcat Servlets/JSP container.
If you need more insight into the code of this demo, you can consult the JSP source files located in the TomcatPort/src/resources folder.
In addition, There are 2 privileged places you can go to: