• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

DB2 DataSource for Struts

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I am using WSAD to implement a Struts web app, with DB2 as database.
I am not sure what <data-source>'s type and driverClassName I should define/use for DB2 connection within struts-config.xml file.

Your tips is greatly appreciated,

laura
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Struts forum.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Laura,

I am new to Struts but the commented settings below will work on an iSeries. The AS400JDBCDriver should work from anywhere while the DB2Driver only works if you are running on the iSeries.

John

<data-sources>
<data-source>
<set-property property ="driverClass"
value = "com.mysql.jdbc.Driver" />
<!-- value = "com.ibm.as400.access.AS400JDBCDriver" /> -->
<!-- value = "com.ibm.db2.jdbc.app.DB2Driver" /> -->
<set-property property ="url"
value = "jdbc:mysql://localhost/ccllc"/>
<!-- value = "jdbc:as400://192.168.1.254"/> -->
<!-- value = "jdbc:db2:*local"/> -->
[ January 26, 2005: Message edited by: John Ackerman ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic