Hibernate version:3.0.5
Hi,
I need your advice on this Hibernate Gurus, in our J2EE system ( to be deployed on WAS 6.0 with cluster support), there are several master data tables, which gets updated very infrequently may be once a week or even in a month.
a) I would like to get those master data tables through hibernate and make use of the cache tag to store them in second level cache(jboss cache or oscache) and once loaded may be through a servlet filter, we would like to make use of these entities in our struts classes.
b) Hibernate session is bound to JTA Transaction as we are running all the database related dao classes within session bean context.
Now as i pointed out, i would like to have these second level cache entities available in my struts classes may be through servlet context? Now the query is i dont want to get these entities throug a "get" from Hibernate Session, is there somehow we can retrive these second level cache objects without going through Hibernate Session, but also have the flexibility that when they are updated, the second level cache also gets updated.
Any hint guys.
Thanks
|