[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity
Emmanuel doesn't monitor this list. Ask in HEM or EJB3 forums. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956475#3956475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956475 - 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
[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity
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
[JBoss-user] [JBoss Seam] - Re: @PreUpdate not being called on Seam @Entity
Arrgh, sorry about that. I fundamentally misunderstood how this works. Now I know about @EntityListeners and I will build a proper listener class and so forth. SEARCH BEFORE POSTING :-( Cheers, Rob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955975#3955975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955975 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