NOTE - JAR files like jt400.jar should go in the shared/lib folder and not
the common/lib folder if using Tomcat 5.5 or prior versions. See here for
more info:

Here is a migration guide if using Tomcat6:

Todd Allen
Electronic Data Processing Services

"Dan Kimmel"
<dkimmel@rjssoftw> To
Sent by: "Java Programming on and around the
java400-l-bounces iSeries / AS400" <java400-l@xxxxxxxxxxxx>

2010-01-18 10:28 Subject
RE: setup JNDI in tomcat to access
Please respond to
Java Programming
on and around the
iSeries / AS400

Put it in the /common/lib of your tomcat instance.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx
] On Behalf Of Ashish Kulkarni
Sent: Sunday, January 17, 2010 2:44 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: setup JNDI in tomcat to access AS400,

This works with tomcat, where do i put the jt400.jar file if i am running
tomcat as eclipse plugin

On Thu, Jan 14, 2010 at 5:53 PM, Dan Kimmel <dkimmel@xxxxxxxxxxxxxxx>

Here's an example from one of my applications. Note this is an older
Tomcat; in the newer versions the ResourceParams/parameters go in the
Resource tag. Important to note that the user and password must go in
the url string. The JNDI has a place for them in parameters, but
AS400JDBCDriver pays no attention to those.

<Context docBase="C:\Documents and
path="/WorkflowWebServices" reloadable="true"
prefix="WorkflowWebServices_log." suffix=".txt" timestamp="true"
fileDateFormat="yyyy-MM-dd" prefix="localhost_access_log."
<Resource auth="Application" description=""
name="jdbc/rjsworkflow" scope="Unshareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/rjsworkflow">
library=RJSFLOW;package add=false;package
criteria=select;prefetch=true;block size=512;</value>


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:
java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Thorbjoern Ravn Andersen
Sent: Thursday, January 14, 2010 3:37 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: setup JNDI in tomcat to access AS400,

Ashish Kulkarni skrev:
Is there a tutorial or how to configure JNDI in tomcat on windows
to access AS400 DB2, i would like to configure JNDI in tomcat
running in my

A qualified guess: You need jt400.jar added to the Tomcat libraries,
and then set up a database connection pool in JNDI with a JDBC string
starting with jdbc://as400. Note that many properties exist that
modify the way the JDBC driver behaves. Read the Toolbox documentation

Thorbjørn Ravn Andersen " Tubular Bells!"

This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.