Tuesday, April 12, 2005

Tomcat, Hibernate and AS400/ISeries

Add resource to GlobalNamingResources in server.xml




factory
org.apache.commons.dbcp.BasicDataSourceFactory


url
jdbc:as400://www.mydb.com;naming=system;trace=true


driverClassName
com.ibm.as400.access.AS400JDBCDriver


username
mydbuser


password
mydbpassword


maxWait
3000


maxIdle
100


maxActive
10



Add a resource link to the applications context in server.xml



add datasource name to hibernate.cfg.xml

java:comp/env/jdbc/myds



No comments:

Post a Comment