Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Intranet to Internet transfer

 
Mishra Anshu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose you have made some pages using JSP/Servlet
and are comfortable to establish the database connection
(maybe mysql/MsAcces). It is working fine on the intranet.
But if I want to transfer (upload) the same to the internet
doesn't I'll have to change some database code? Since
the path of the database on the server may be different
that was on my intranet.
So, what factors should we consider when we are going
for such a transfer?
Also may be the server I'll be using may not support all
types of the DB.
Plz. comment
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anush,
An best practice for database connection is to use properties file for storing info related to database.
so you just need to change properties files for any database change
cheers
Praful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic