-->
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.  [ 4 posts ] 
Author Message
 Post subject: JPA and multiple JVMs - refresh problems
PostPosted: Wed Apr 21, 2010 6:39 am 
Newbie

Joined: Wed Apr 21, 2010 6:32 am
Posts: 2
Hello All,

I have two application which point to same database but run under different JVM.

1. Admin application - The admin application is responsible for adding some entites, reporting....., runs under Tomcat6.
2. Service application - The service application does some processing, running outside Tomcat6.

There is table called as DTR, when a new DTR is added through the Service application and when someone does the reporting through the Admin application, the newly added DTR does not showup. I think it only shows up the data that had been cached earlier by admin application.


Is there anyone who has faced similar problem in past or anyone who has any solution


Regards,
Faiz.


Top
 Profile  
 
 Post subject: Re: JPA and multiple JVMs - refresh problems
PostPosted: Wed Apr 21, 2010 6:48 am 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
look at your caching interval.
Hope this helps
Please do not forget to rate


Top
 Profile  
 
 Post subject: Re: JPA and multiple JVMs - refresh problems
PostPosted: Thu Apr 22, 2010 2:00 am 
Newbie

Joined: Wed Apr 21, 2010 6:32 am
Posts: 2
gopalsaha wrote:
look at your caching interval.
Hope this helps
Please do not forget to rate



The First level caching is the default one and I have not configured any Second level caching.


Top
 Profile  
 
 Post subject: Re: JPA and multiple JVMs - refresh problems
PostPosted: Thu Apr 22, 2010 6:00 am 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
try query.setCacheMode(CacheMode.IGNORE) or query.setCacheMode(CacheMode.REFRESH)
Hope this helps


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