Actually, it looks like I *didn't* misunderstand how this works.  A Hibernate 
forum post mentions that the EJB3 lifecycle callbacks only work if you're using 
EntityManager, i.e. an embedded EJB3 container.  Which I'm not -- I'm using the 
microcontainer-based Hibernate example for my configuration.

Anyone know offhand?  Is it true that if I'm using the Tomcat / microcontainer 
/ no-EJB3 configuration, that EJB3 lifecycle callbacks (e.g. @PreUpdate) won't 
be called?  If so, does this mean that @EntityListeners won't work either 
without going to an embeddedEjb configuration?

And in general, is there any reason to prefer the microcontainer config (a la 
the Seam Hibernate example) to the embeddedEjb config (a la the blog example)?  
Seems like the microcontainer style might be strictly less useful...?

Thanks....
Cheers,
Rob

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956008#3956008

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956008

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to