-
1. Re: Transaction manager not bound with embedded-ejb containe
christian.bauer Jan 24, 2006 4:55 AM (in response to andrew.rw.robinson)The log output means that the Hibernate SessionFactory isn't bound to JNDI. Has nothing to do with the "seam extended persistence manager". And is also completely unrelated to the subject of your posting the "transaction manager". What is your actual problem?
-
2. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 8:25 AM (in response to andrew.rw.robinson)Oh, currently the Embeddable EJB container is NOT working with seam-managed persistence contexts.
Sorry if I did not pick up on that earlier, I only just became aware of this myself.
The trouble is that Embeddable EJB is not binding the TransactionManager to JNDI, as you have observed.
So your options are:
(1) Use JBoss
(2) Use Embeddable EJB + EJB-managed txns
(3) Use plain Hibernate + microcontainer + Seam-managed txns
ie. Any of the combinations that are working in the example apps. It is only
* Embeddable EJB + Seam-managed txns
that is not working.
I'll work with Bill to get that problem fixed in EEJB. -
3. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 8:31 AM (in response to andrew.rw.robinson)Ignore my last post. If you are working against CVS, I believe that this has already been solved. Let me try to get this working in the booking demo. (I'll get back to you later today.)
-
4. Re: Transaction manager not bound with embedded-ejb containe
andrew.rw.robinson Jan 24, 2006 11:11 AM (in response to andrew.rw.robinson)Thanks a lot Gavin, I really appreciate your effort. Don't mean to be so negative, its just that I'm trying to get a site developed by the middle of next month and I haven't even started it yet, been spending the entire time just trying to configure Seam.
-
5. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 11:35 AM (in response to andrew.rw.robinson)OK, thanks for helping me find this bug. Turns out I was missing some stuff from jboss-embedded-beans.xml.
If you add these lines:<bean name="UserTransaction" class="org.jboss.ejb3.embedded.UserTransactionImpl"> <demand>TransactionManagerInitializer</demand> </bean> <bean name="UserTransactionBinding" class="org.jboss.ejb3.embedded.JndiBinder"> <property name="jndiProperties"><inject bean="InitialContextProperties"/></property> <property name="target"><inject bean="UserTransaction"/></property> <property name="bindTo">java:comp/UserTransaction</property> <property name="serializable">false</property> </bean>
It will work.
I've tested on tomcat/embeddable ejb3.
I'll commit that to CVS now. -
6. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 11:41 AM (in response to andrew.rw.robinson)"andrew.rw.robinson" wrote:
Thanks a lot Gavin, I really appreciate your effort. Don't mean to be so negative, its just that I'm trying to get a site developed by the middle of next month and I haven't even started it yet, been spending the entire time just trying to configure Seam.
Yes, configuration is a bitch, especially when the thing you are configuring has been a moving target.
I'm trying to make it easy. It's a nontrivial problem when we are targetting such diverse environments. Well, stuff is more stabilized now. -
7. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 12:11 PM (in response to andrew.rw.robinson)OK, the Seam issues demo can now be deployed on Tomcat, which shows this stuff working :-)
-
8. Re: Transaction manager not bound with embedded-ejb containe
andrew.rw.robinson Jan 24, 2006 2:17 PM (in response to andrew.rw.robinson)I got an application exception. AWESOME! Never thought I would be so happy to see my own code fail. Thanks so much for your hard work Gavin. Now to start writing/fixing my own code :0
-
9. Re: Transaction manager not bound with embedded-ejb containe
gavin.king Jan 24, 2006 2:36 PM (in response to andrew.rw.robinson)Great, at last :)