I found the problem!!!
If you have to connect to AS400 using Torque, you have to configure it in
this way:

torque.database.name.adapter=as400
torque.dsfactory.icaro400.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory

torque.dsfactory.icaro400.pool.defaultMaxConnections=10
torque.dsfactory.icaro400.pool.maxExpiryTime=3600
torque.dsfactory.icaro400.pool.connectionWaitTimeout=10
torque.dsfactory.icaro400.connection.driver =
com.ibm.as400.access.AS400JDBCDriver
torque.dsfactory.icaro400.connection.url = jdbc:as400://system/collection
torque.dsfactory.icaro400.connection.user = user
torque.dsfactory.icaro400.connection.password = password

(Do not use adapter name "db2400" as it is said on torque doc!)

Luca Forni


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to