• 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

how dsn can be used on deployment server

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, i have tried out the DSN name for connecting to my Ms-access database .it works perpectly well in my localhost machine. But i dont know how to deploy it in deployment server.how is this DSN setuped in server.do we need to mention anything in our web.xml.i am using servlets .

pls suggest.
 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The DSN which you setup in the deployment server should map to the location of the Access Database. for eg. if your DB resides on server X, then the DSN should have the //x/DBName.mdb in the path name for the mdb file so that your DSN can access the DB. So unless you have the path name for the database file you wouldn't be able to setup the DSN. The DSN should reside on your deployment server.

I wouldn't recommend using a JDBC: ODBC bridge. It should be used only for testing and prototyping. A type 3 driver is an alternative.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic