• 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

datasource object problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to know how to change the properties of the datasource object

i have datasource object for database connection with some properties.if there is change in the server,then i need to change these properties.how to do that.

i made a alternate attempt to make a file and write all parameters in that file(username,password etc)but everytime i make a connection i need to read that file and make a connection.

so i want to use datasource.rightnow i hardcore the "datasource" if i need to change this then how should i do that?

how to make a change in the properties of the datasource?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sri subha:
how to make a change in the properties of the datasource?


It depends on where you define your datasource. If you define it on the server, you need to change it on the server. If you define it through code, you would use the properties file you described.
 
reply
    Bookmark Topic Watch Topic
  • New Topic