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?
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.