Hi,

Could you try with p:useJms11="false"?

Freeman
On 2011-5-27, at 下午5:37, mymacin wrote:


I am trying to achieve transactions with SOAP over JMS .Basing on
JMSfeatures i have configured jms end points.But I am unable to achieve transactions.I am using spring declarative @transactions but the transaction is not propagating with the jms message. Please check the below code and let
me know if anything wrong with configuration.

In the client end:

<jaxws:client id="greeterJMSImplService"
        xmlns:greeterJMSImplService="http://cxf.apache.org/jms_greeter";
        serviceName="greeterJMSImplService:GreeterJMSImplService"
        address="jms://"
        serviceClass="foo.service.GreeterJMS">
        
        <jaxws:features>
                <bean xmlns="http://www.springframework.org/schema/beans";
class="org.apache.cxf.transport.jms.JMSConfigFeature"
                 ><property name="jmsConfig" >
                <bean
                        class="org.apache.cxf.transport.jms.JMSConfiguration"
                        p:connectionFactory-ref="jmsConnectionFactory"
                        p:targetDestination="SampleQueue2"
                        p:useJms11="true"
                        p:sessionTransacted="true"
                        p:transactionManager-ref="JTAtransactionManager"
                        />
                </property>
                </bean>
        </jaxws:features>
</jaxws:client>



in the publisher end:

<jaxws:endpoint
        address="jms://"
        xmlns:customerService="http://cxf.apache.org/customer_service";
        serviceName="customerService:CustomerService"
        implementor="#CustomerService">

        <jaxws:features>
                <bean class="org.apache.cxf.transport.jms.JMSConfigFeature">
                <property name="jmsConfig" >
                <bean
                        class="org.apache.cxf.transport.jms.JMSConfiguration"
                        p:connectionFactory-ref="jmsConnectionFactory"
                        p:targetDestination="SampleQueue1"
                        p:useJms11="true"
                        p:sessionTransacted="true"
                        p:transactionManager-ref="JTAtransactionManager"
                                />
                </property>
                </bean>
        </jaxws:features>
        
</jaxws:endpoint>








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

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to