Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jdbc and hibernate

843859Oct 17 2007 — edited Oct 18 2007
I have a project that is purely hiebrnate classes and controllers. I exporting it as .jar file.

However, I need it to be connected to a given database url given by the user.

I was thinking on parsing and creating an xml with the given db url. However, I realized that when you compile the project into a .jar the persistance.xml is also placed in this .jar

Given this is there anyway I can set the db url at run time?

thanks !!

I am using
javax.persitance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2007
Added on Oct 17 2007
7 comments
165 views