-
1. Re: Seam managed transaction in Tomcat
thejavafreak Aug 15, 2007 4:10 AM (in response to dapeng)Have you installed embedded jboss?
-
2. Re: Seam managed transaction in Tomcat
dapeng Aug 15, 2007 8:51 AM (in response to dapeng)I have jboss-embedded-all.jar in WEB-INF/lib
-
3. Re: Seam managed transaction in Tomcat
pmuir Aug 15, 2007 8:53 AM (in response to dapeng)Thats not how you install embedded jboss. Look in the Seam ref manual (Seam2 beta)
-
4. Re: Seam managed transaction in Tomcat
dapeng Aug 15, 2007 10:31 AM (in response to dapeng)Do I have to use embedded-jboss container, if I just want to use the JSF enhancements of Seam and no EJB3 functions?
My plan is to have a JPA POJO and service layer completely managed by Spring and a JSF web layer on top of it. Is it necessary to have the embedded-jboss in that case? -
5. Re: Seam managed transaction in Tomcat
asavitsky Aug 15, 2007 12:55 PM (in response to dapeng)If you're using plain JPA (no EJB3) and you don't require JTA, then no, you don't need jboss-embedded at all. You'll need to
a) use Seam transaction manager<transaction:entity-transaction entity-manager="#{entityManager}" />
b) declare your datasource in Tomcat
c) reference the datasource in persistence.xml, and make sure to specify transaction-type="RESOURCE_LOCAL"
If you need any more info, just ask (but make sure to read the docs first, it's all explained in detail there)
Alex -
6. Re: Seam managed transaction in Tomcat
dapeng Aug 16, 2007 9:36 AM (in response to dapeng)a) use Seam transaction manager
That is the point. I want to use spring instead of seam tx, because the same method will be invoked by non-jsf requests. Is that possible to tell Seam to start local tx managed by spring tx manager?declare your datasource in Tomcat
Can I declare the datasource in my spring config, so that I have the same config for production and unit tests? If yes, how to reference such a POJO datasource from persistence.xml?
Thanks -
7. Re: Seam managed transaction in Tomcat
youngm Aug 16, 2007 11:16 AM (in response to dapeng)In case someone stumbles upon this thread with the same question. You can find more information at this thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074888#4074888