Step 1:
Create module under modules directory like modules\system\layers\base\com\ibm\db2\main and add db2jcc4.jar and db2jcc_license_cu.jar jars in that module. Remember you have to place db2jcc4.jar and not db2jcc.jar
Step 2:
Open Standalone.xml file add following code into subsystem of data source and edit following code as per your database url and username and password for data sources.
Standalone.xml
Under
- <driver name="db2" module="com.ibm.db2">
- <xa−datasource−class>com.ibm.db2.jcc.DB2XADataSource</xa−datasource−class>
- </driver>
Step 3:
Inside modules folder create IBM DB2 folder structure as below
We Can use db2jcc,jar or db2jcc4.jar as per our requirement
For Oracle: \ com\ibm\db2\main
Create Module.xml inside main as
————————————————————————–
————————————————————–
Inside main directory add db2jcc4.jar and db2jcc_license_cu.jar