db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <arm...@apache.org>
Subject Re: Setting a ConnectionFactory instance instead of configuring a class in OJB.properties
Date Tue, 22 Mar 2005 20:32:32 GMT


Bart Molenkamp wrote:
> Hi,
> 
> Is is possible to set a ConnectionFactory at runtime instead of defining
> a class in OJB.properties? I need to create the ConnectionFactory
> instance myself, and then need to tell OJB that it should use that
> connection factory.
>

Never tried this before. Should be possible if you call

fac = ConnectionFactoryFactory.getInstance();
// this override the class set by OJB.properties
fac.setClassToServe(factory);

before the first PB instance is created.

regards,
Armin


> Thanks,
> Bart.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message