It seems an example for Tomcat and jsp might be useful. To install this example:
1) Create a new directory in \webapps called connpool and unzip Connpool.zip into it. Check: You should now have directory called \webapps\connpool containing Test.jsp and a further directory called Web-Inf. Web-Inf should contain web.xml and a directory, lib, complete with all needed jar files.
2) Unzip Resources.zip into . Check: You should now have a directory called resources under and it should contain ManagedConnectionPools.xml. Modify this file to match your database URI.
3) Modify Test.jsp in \webapps\connpool and set the values of:
String DATABASE_COLLECTION = “CSG”;
String DATABASE_DOCTYPE = “resreq”;
String POOL_NAME = “TestPool”;
to match your required values.
4) Configure Tomcat.
If you run Tomcat from catalina.bat, you need to put the resources directory in classpath by adding the following line to setclasspath.bat in tomcat’s bin directory:
after:
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
add:
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\resources;
If you run Tomcat as a service, you need to change file wrapper.properties in directory \conf\jk\ (assuming you are using jk_nt_service):
after:
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
add:
wrapper.class_path=$(wrapper.tomcat_home)\resources
Now start Tomcat and run the example using a URL like http://localhost:8080/connpool/Test.jsp.
This all works for me - hope it works for you!
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs