Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

creating db2 datasource

 
P. Ingle
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anyone shed some light on this?

What do I need (files/setup) locally to be able to create a datasource to a remote DB2 instance database (SAMPLE database) and how do I achieve that (creating datasource and connecting to database using that datasource)?
I am using WSAD for my web app which will be using JDBC to fetch data from DB2 database

Thanks,
P.Ingle
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your db2 control center setup a database that references the remote one. It is good to do a query from the control or command center to verify connectivity.

From WSAD, you just create a regular datasource and refer to it using the local alias you provided in db2.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!