sorry for answering late:
as far as I know there's no way to access treecache through the hibernate
entitymanager. Maybe with a JNDI lookup you can get the underlaying MBean.
But there's a solution: cast the entitymanager to hibernate session and something like
this:
anonymous wrote :
| org.jboss.ejb3.entity.HibernateSession hs = (HibernateSession) entityManager;
| org.hibernate.Session session = hs.getHibernateSession();
| session.flush();
| session.getSessionFactory().evict(result.getClass(), result.getUid());
|
lazlo
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977705#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...