-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: hibernate used in parallel with other persistent manager
PostPosted: Sat Jan 10, 2004 5:05 am 
Newbie

Joined: Tue Sep 16, 2003 4:59 am
Posts: 10
Dear,

we planned to reengineer all our applications base on a framework using hibernate as persistent manager.

As our migration can not be done in one stage, I was wandering if it iwas possible to migrate the applications part by part, letting hibernate and our internal persistence mechanism working in parallel for a time.

I know that it should have some problem like invalidating hibernate cache or something but does it exist some tips or standard way to let them working toegether for the time of the migration

Thx a lot


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 10, 2004 5:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Absolutely it is possible! Hibernate is designed to work in applications that do "data access by heterogeneous means".

If you want zero problems, simply disable the second-level cache.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 10, 2004 4:15 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 6:04 am
Posts: 161
Location: Linz, Austria
A typical problem will be to include heterogeneous persistence operations within one transaction. You can either to do that via JTA, configuring all involved tools to use transactional JNDI DataSources, or use the Spring Framework's generic transaction support. Spring comes with pre-built support for JDBC, Hibernate, JDO, and iBATIS Database Layer.

Spring also addresses a further typical issue: creating generic DAO interfaces. Besides transaction and resource management support, Spring provides a generic DataAccessException hierarchy, with pre-built conversion support for the above-mentioned persistence strategies.

If you're interested, have a look at the article http://www.hibernate.org/110.html for an introduction to Spring in combination with Hibernate!

Juergen
(Spring Framework developer)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.