-->
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: stored procedures + distrib cache + ejb3 + hibernate
PostPosted: Thu Jan 17, 2008 5:48 pm 
Newbie

Joined: Fri Jan 11, 2008 6:32 am
Posts: 4
Hi,

I'm trying to find out if it is possible to use stored procedures + distrib cache + ejb3 + hibernate.

Scenario:
the SF ejb3 should call jee5 (hibernate's) persistence manager native query which should do for example update through stored procedure which I have to use in my architecture.

My question is if the cluster (based on hibernate's 2nd level cache) will able to handle it and if this is 'cluster-safe' ...

Sorry if I'm not clear enough in my question ... please let me know if you need more information.

thanks a lot!

Rob


Top
 Profile  
 
 Post subject: Re: stored procedures + distrib cache + ejb3 + hibernate
PostPosted: Thu Jan 17, 2008 5:58 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Your cache won't get notified of the changes the SP makes in db neither will HB. You will have to do either of these things:

1- manually evict those classes from L2 Cache
2- load the affected objects right after the SP call
3- cache those objects in a short life span cache region and be prepared for inconsistencies.



Farzad-


Top
 Profile  
 
 Post subject: Re: stored procedures + distrib cache + ejb3 + hibernate
PostPosted: Thu Jan 17, 2008 6:00 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
farzad wrote:
2- load the affected objects right after the SP call



Forget this option. It might hit a local cache entry.


Farzad-


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.