Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i connect to a db2 server which is not in my local net work using net driver?

 
niranjan pulipati
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
I have a doubt.. I have my application server on my system with some JSP pages. My client wants database in a remote system which is not in my local network. Can i do that for a db2 database with net driver.? if so how?
Actually the same can be done using mysql database. IN mySql even if the database is anywhere in internet by just giving access to a specific IP Address we can connect to that database anywhere.
Is the same possible with db2 net driver?
Thanks & Regards
Niranjan
 
Robert Brunner
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you describe is a manifestation of the n-tier approach. There is no rule that the middle-tier needs to be co-located with the back-end. You can have the database server anywhere, as long as you configure the JDBC appropriately (i.e., use the full DNS name for the database server in the JDBC URL) your code will work. You might have to deal with firewall or security issues, but that is straightforward.
To understand the JDBC URL syntax for the appropriate JDBC driver, read the driver documentation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic