-->
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.  [ 5 posts ] 
Author Message
 Post subject: hibernate Cache Issue
PostPosted: Sat Feb 11, 2006 2:03 am 
Newbie

Joined: Sat Feb 11, 2006 1:47 am
Posts: 9
Location: India
i am using the JBOSS3.2.6.
i am using Hibernate only in my web app.
regarding the cache
i have used OSCache provider class
when i deploy my app for first time it works fine but as i change my some java file n try to redeploy it gives me error after fetching the same page which i tried successfully first time.


session factory is bound in JNDI, i have used Mbean tag in jboss-service.xml
n i am looking up for sessionfactory by using this jndi name.
the entry in jboss-service.xml is

<mbean code="org.hibernate.jmx.HibernateService"
name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="MapResources">myresources.hbm.xml</attribute>
<attribute name="JndiName">hibernate/SessionFactory</attribute>
<attribute name="Datasource">java:/MyDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">org.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="QueryCacheEnabled">false</attribute>
<attribute name="SecondLevelCacheEnabled">false</attribute>
</mbean>


can anybody help me in this?

_________________
crack the jack


Last edited by pankie_the_cool on Mon Feb 13, 2006 1:39 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 5:51 am 
Newbie

Joined: Fri Feb 10, 2006 5:48 am
Posts: 7
Try clearing the tmp and work folder in your Web App.
There is a possiblity of your old files getting cached in
those folder and after doing that, plz restart your server.

Hope will solve your problem !!!!!
:-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 9:07 am 
Newbie

Joined: Sat Feb 11, 2006 1:47 am
Posts: 9
Location: India
Padmanaba Prasad wrote:
Try clearing the tmp and work folder in your Web App.
There is a possiblity of your old files getting cached in
those folder and after doing that, plz restart your server.

Hope will solve your problem !!!!!
:-)


Thanx a lot !!!!
But this is first solutions anybody tries after such uncertain behaviour.
aft restarting the server it can be deployed n access sucessfully but same problem persist when i try to redoply.. :))

_________________
crack the jack


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 10:34 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
factory.close() must clear this stuff.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 2:02 am 
Newbie

Joined: Sat Feb 11, 2006 1:47 am
Posts: 9
Location: India
baliukas wrote:
factory.close() must clear this stuff.

doing all this when itry to access next time after redoying the app.
it gives
Unbound factory from JNDI name: hibernate/SessionFactory

by this name i am lookinup for my session factory which i bound to jndi in mbean in jboss_service method

_________________
crack the jack


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