• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic