• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

datasource object problem

 
sri subha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic