Multi-database Teneo [message #117364] |
Tue, 08 April 2008 18:20  |
Eclipse User |
|
|
|
Hi Martin,
We've got a need to access two completely separate databases from one
program. I'm not sure how to make the two HbDataStores point to two
different hibernate.properties files. Do you have any advice for doing
this sort of thing?
Thanks much,
Jason Henriksen
|
|
|
|
Re: Multi-database Teneo [message #117406 is a reply to message #117364] |
Wed, 09 April 2008 01:17  |
Eclipse User |
|
|
|
Hi Jason,
No I checked but I couldn't find out if/how different sessionfactories can use different property
files. What I would do is explicitly read the property file yourselve and pass the properties to the
datastore. Then you can handle as many property files as you want.
gr. Martin
jason henriksen wrote:
> Hi Martin,
>
> We've got a need to access two completely separate databases from one
> program. I'm not sure how to make the two HbDataStores point to two
> different hibernate.properties files. Do you have any advice for doing
> this sort of thing?
>
> Thanks much,
>
> Jason Henriksen
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
Re: Multi-database Teneo [message #616132 is a reply to message #117364] |
Wed, 09 April 2008 01:17  |
Eclipse User |
|
|
|
Hi Jason,
No I checked but I couldn't find out if/how different sessionfactories can use different property
files. What I would do is explicitly read the property file yourselve and pass the properties to the
datastore. Then you can handle as many property files as you want.
gr. Martin
jason henriksen wrote:
> Hi Martin,
>
> We've got a need to access two completely separate databases from one
> program. I'm not sure how to make the two HbDataStores point to two
> different hibernate.properties files. Do you have any advice for doing
> this sort of thing?
>
> Thanks much,
>
> Jason Henriksen
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03813 seconds