| Author |
How do I get Hibernate 3 to NOT cache on JBoss????
|
Marcos Maia
Ranch Hand
Joined: Jan 06, 2001
Posts: 977
|
|
Hi, during development I want hibernate to not cache references so I wont need to restart jboss after an update on the data domain layer. How do I do that? Couldn�t fin anything on docs or foruns... and tx in advance
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Hibernate only uses the first level cache by default - you have to configure the second level cache explicitly. The first level cache should not give you any problems, and since JBoss supports hot deployment you should be able to develop and deploy without restarting. How are you caching your POJOs?
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Marcos Maia
Ranch Hand
Joined: Jan 06, 2001
Posts: 977
|
|
Hi Paul, tx for reply... Im not configuring nothing special, just using standard hibernate for now, while in development. I�m using exploded directory structure do develop so I have a folder for my .ear, inside a folder for my .jar and for .war, everything works fine when i do a hot deployment and touch the application.xml , jboss does update the class loader but if i had used any data domain object(i.e - hibernate persistence objects) when i try to to run a JUnit test again I allways get an exception like this: any help will be appreciated..
|
 |
Jignesh Patel
Ranch Hand
Joined: Nov 03, 2001
Posts: 625
|
|
I have similar kind of issue. I am using weblogic8.1(SP4), but whenever I modified something in code and deploy again, the server deploys old code, not the modified one. -Jignesh
|
 |
Marcos Maia
Ranch Hand
Joined: Jan 06, 2001
Posts: 977
|
|
Originally posted by Jignesh Patel: I have similar kind of issue. I am using weblogic8.1(SP4), but whenever I modified something in code and deploy again, the server deploys old code, not the modified one. -Jignesh
Hi Jignesh, are u using exploded directory structure?
|
 |
Jignesh Patel
Ranch Hand
Joined: Nov 03, 2001
Posts: 625
|
|
yup, but even if I use .jar then also it is supposed to deploy at Runtime again. One more reason I am thinking: I am using quartz, so even when I redeploy whole application the quartz thread continously running, don't get redeploy untill unless I shutdown the App Server, so that thread keeps using old java objects and never let them expire from memory through garbage collector. So even though my APP-INF/lib folder have a new code(I have checked it), I am getting data from old objects. Any body came across that kind of scenario? -Jignesh
|
 |
Marcos Maia
Ranch Hand
Joined: Jan 06, 2001
Posts: 977
|
|
Originally posted by Jignesh Patel: yup, but even if I use .jar then also it is supposed to deploy at Runtime again. One more reason I am thinking: I am using quartz, so even when I redeploy whole application the quartz thread continously running, don't get redeploy untill unless I shutdown the App Server, so that thread keeps using old java objects and never let them expire from memory through garbage collector. So even though my APP-INF/lib folder have a new code(I have checked it), I am getting data from old objects. Any body came across that kind of scenario? -Jignesh
Jignesh, using exploded directory structure you have to place a file called Redeploy under the directory Meta-inf on you .ear and touch it to get weblogic to reload the classes eliminating the need to restart it.
|
 |
 |
|
|
subject: How do I get Hibernate 3 to NOT cache on JBoss????
|
|
|