I am running an application that used struts and hibernate. I am currently using Derby database. Now i have to shift on DB2 database.
Please tell me
Thanks in advance.
It should work with db2jcc.jar
Add below properties to your hibernate.cfg.xml
<property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="connection.url">jdbc:db2://<host>:<port50000>/<dbname></property>
<property name="connection.username">dbusername</property>
<property name="connection.password">dbpassword</property>
Change last 3 properties according to your configuration