Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Multi-database Teneo
Multi-database Teneo [message #117364] Tue, 08 April 2008 22:20 Go to next message
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
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 #117381 is a reply to message #117364] Tue, 08 April 2008 23:42 Go to previous messageGo to next message
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
Sorry for the double post. Problems with Thunderbird I guess.
Re: Multi-database Teneo [message #117406 is a reply to message #117364] Wed, 09 April 2008 05:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 #616127 is a reply to message #117364] Tue, 08 April 2008 23:42 Go to previous message
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
Sorry for the double post. Problems with Thunderbird I guess.
Re: Multi-database Teneo [message #616132 is a reply to message #117364] Wed, 09 April 2008 05:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:[Teneo] Annotation in ecore model (foreign key and annotation for options)
Next Topic:[CDO] Transactional Editing Domain
Goto Forum:
  


Current Time: Fri Apr 26 09:33:06 GMT 2024

Powered by FUDForum. Page generated in 0.03618 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top