well Nagendra i m also asking in same context.
lets say my database for which datasource is to be created is at some other location.
In configuration section, we also hard code the machine location of database.
Is it possible to move databse location to some other machine while the application is running?
Like in case we want to move
EJB to other location,the user is still serviced due to inbuilt location transparency property.
Can we utilize location transparency in case of persistence server also(database)without hardcoding machine location in configuration section?
thanks.
Originally posted by Nagendra Prasad:
vikas
i can reply to this in the context in which i have addressed the problem.
The datasource is defined for the app server. THis I achieved using the admin interface for the app server. The server resources generally have a section where u ca specify the JDBC providers. In the same place u can provide a database name, username and password.
While defining, once can provide a JNDI mapping (or name) for this datasource and reference it as such within the application.