Sebastian wrote:
Hi Armin,
the pages explain how to setup a connection if I have all the different parameters separately. Does there exist a utility function that accepts a JDBC url and extracts the different portions itself?
sorry no, but it shouldn't be a problem to extract protocol, subprotocol, dbalias from the url.
Armin
Thanks, Sebastian
Armin Waibel wrote:
Hi,
please see http://db.apache.org/ojb/faq.html#Connect%20to%20database%20at%20runtime?
or more detailed in new upcoming docu
http://www.powaibel.de/ojb/ojb-style/docu/metadata.html#connect-at-runtime
regards, Armin
Sebastian wrote:
Hi,
is it possible to generate a persistence broker during runtime based on a JDBC URL?
I know that I can use
PersistenceBrokerFactory.createPersistenceBroker("jcd-alias, "user", "pw");
to connect to a predefined connection with a certain username and password.
In my case I have to readin a jdbc url string from a separate property file and somehow create a persistence broker.
thanks in advance!
Sebastian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]