Hi,

I just found you want to combine the JMS transcation and JPA together.
Not sure if these two resource can work together with the JTA transaction manager.

On 5/27/11 6:14 PM, mymacin wrote:
Here is my spring bean configuration


<context:component-scan base-package="foo"/>
        <context:annotation-config />

        
        <aop:config />


                <bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
                <property name="jpaVendorAdapter">
                <bean 
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
p:database="MYSQL" p:showSql="false"/>
                </property>
                
                
        </bean>

        <bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager">
         <property name="transactionManagerName"
value="java:/TransactionManager"/>
         <property name="userTransactionName" value="UserTransaction"/>

     </bean>

        <context:annotation-config/>

<tx:annotation-driven transaction-manager="transactionManager"/>

        <bean
class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>



    <bean id="jmsConfig"
           class="org.apache.cxf.transport.jms.JMSConfiguration"
          p:connectionFactory-ref="jmsConnectionFactory"
          p:targetDestination="SampleQueue2"
            />

     <bean id="jmsConfig1"
           class="org.apache.cxf.transport.jms.JMSConfiguration"
          p:connectionFactory-ref="jmsConnectionFactory"
          p:targetDestination="SampleQueue1"
            />

  <bean id="jmsConnectionFactory"
class="org.springframework.jms.connection.SingleConnectionFactory">
        <property name="targetConnectionFactory">
                <bean class="org.apache.activemq.ActiveMQConnectionFactory">
                        <property name="brokerURL" value="tcp://localhost:61616" 
/>
                </bean>
        </property>
</bean>




--
View this message in context: 
http://cxf.547215.n5.nabble.com/SOAP-over-JMS-Transactions-tp4431341p4431422.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Reply via email to