1 Reply Latest reply on Dec 23, 2009 7:27 PM by Peter Johnson

    Can JBoss EAP 5.0 be connected to DB2 through DB2 Connect?

    Mahendra Agarwal Newbie



      I need to connect JBoss EAP 5.0 to the database (DB2) via DB2 Connect. I have JBoss and DB2 Connect Client installed on the same box, and now I need to connect JBoss to the DB2 Connect Client inorder to access the database. What are the files I need to make changes to? Should I be using the db2-ds.xml file to connect to the DB2 Connect Client?


      There is very little or no documentation available online. Please advise.



        • 1. Re: Can JBoss EAP 5.0 be connected to DB2 through DB2 Connect?
          Peter Johnson Master

          It would have been nice if you would have said what DB2 Connect Client was, or at least given us a link to it.


          Anyways, it appears htat this "package" contains a number of connectors, including a JDBC driver. That is what you want to use. And start with the db2-ds.xml file, filling it in for the JDBC driver - the DB2 Connect Client documentation should tell you how to connect a Java app to DB@. The parts you are interested in is the connection URL and JDBC driver class. After mofirying the db2-ds.xml file, copy it to server/xxx/deploy.

          1 of 1 people found this helpful