Quantcast
Viewing latest article 6
Browse Latest Browse All 9

Add DB2 driver in JBoss

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 tag.  Paste this

  1. <driver name="db2" module="com.ibm.db2">
  2.     <xa&minus;datasource&minus;class>com.ibm.db2.jcc.DB2XADataSource</xa&minus;datasource&minus;class>
  3.   </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

Image may be NSFW.
Clik here to view.
Share


Viewing latest article 6
Browse Latest Browse All 9

Trending Articles