File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to change the database instance for web service which uses entity beans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How to change the database instance for web service which uses entity beans" Watch "How to change the database instance for web service which uses entity beans" New topic
Author

How to change the database instance for web service which uses entity beans

Ravi Danum
Ranch Hand

Joined: Jan 13, 2009
Posts: 104
Hello,

I have created a web service which uses entity beans. I will have a config file for the web service. One of the properties is the database url. My question is how can I change the database programically? I want to be able to read the config file and make the change. I think I would have to change the dbschema file to point to the new database, (changing the jar file), and then redeploy, but this can't be done programically. Is this the only way?

Thank you.

Ravi
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to change the database instance for web service which uses entity beans
 
Similar Threads
EJB 2.1 - Database connection for multiple users in Entity Bean (BMP)
Retrieving data from database.
Login-config.xml
Sample Questions for 288 - Need answers
Session Facade or POJO Facade that is the question.