|
I managed to get this working. Turned out to be a stupid problem. The
names of some of the properties you must set in the struts-config.xml
changed in a subtle way when they moved to DBCP and I didn't notice. Here
is what works:
<data-sources>
<data-source key="MyDataSource" type=
"org.apache.commons.dbcp.BasicDataSource">
<set-property property="description" value="IBM Toolbox
for iSeries DataSource"/>
<set-property property="driverClassName" value=
"com.ibm.as400.access.AS400JDBCDriver"/>
<set-property property="url" value=
"jdbc:as400://MYSYS;translate binary=true;date format=iso;"/>
<set-property property="username" value="WEBUSER"/>
<set-property property="password" value="XXX"/>
<set-property property="maxActive" value="2" />
<set-property property="maxIdle" value="1"/>
<set-property property="maxWait" value="10000" />
<set-property property="defaultAutoCommit" value="true" />
<set-property property="defaultReadOnly" value="true" />
</data-source>
</data-sources>
Mark
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com 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.