users@glassfish.java.net

Re: Hibernate and Spring not working on Glassfish 2

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jan 2008 12:52:39 PST

my Spring 2.5 , JPA and Glassfish v2 app works now with the transaction manager configured as follows:

 <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" />

I had actually tried this before, but it did NOT work when I had the tranasactionManager properties set as follows:
    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
        <property name="entityManagerFactory" ref="entityManagerFactory"/>
        <property name="dataSource" ref="dataSource"/>
    </bean>
[Message sent by forum member 'caroljmcdonald' (caroljmcdonald)]

http://forums.java.net/jive/thread.jspa?messageID=252581