-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate bypassing
PostPosted: Thu Mar 16, 2006 3:47 am 
Newbie

Joined: Thu Mar 16, 2006 3:43 am
Posts: 1
Hi,

I am using hibrenate with oracle in my application.

My question is that if my application server is still on and i m using hibernate with its cache then is it possible that i can change the database from any other application which is not using hibernate (my be jdbc : odbc).

Awating for your reply.


Top
 Profile  
 
 Post subject: Re: Hibernate bypassing
PostPosted: Thu Mar 16, 2006 6:32 am 
Beginner
Beginner

Joined: Thu Aug 19, 2004 5:36 am
Posts: 30
Location: Italy
msjkus wrote:
Hi,

I am using hibrenate with oracle in my application.

My question is that if my application server is still on and i m using hibernate with its cache then is it possible that i can change the database from any other application which is not using hibernate (my be jdbc : odbc).

Awating for your reply.


I did not understand very well your problem, but:

- a SessionFactory is built on a specific database: you cannot silently replace jdbc connection properties in order to swith from original database to another database (I had same problem, at my first experience with Hibernate).
One database <--> One SessionFactory

- if you plan to access the same database both with Hibernate and another application, you have to pay great attention! Double attention if both Hibernate and other application read and WRITE data...
For example: if you use optimistic locks managed by Hibernate, the other application has to be able to manage the <version>.
Regarding the cache, be sure to understand the differece between first level cache (mandatory and managed by the Session) and second level cache (optional, non operational by default, and SessionFactory/cluster wide)


Delta


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.