Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2550

transactions don't work in jaxws Endpoint with jms transport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.2.4, 2.2.5
    • Invalid
    • Transports
    • None

    Description

      i'm trying cxf with jms transport with transaction to process a message and it is dequeued when the implementor object throw an error .

      the message is inonly and the code is:

      EndpointImpl endpoint = new EndpointImpl(new ObjectImpl());
      endpoint.setAddress("jms://");
      ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616");
      JMSConfiguration jmsConfig = new JMSConfiguration();

      jmsConfig.setConnectionFactory(connectionFactory);
      jmsConfig.setTargetDestination("sso2");
      jmsConfig.setSessionTransacted(true);
      jmsConfig.setPubSubDomain(false);
      jmsConfig.setUseJms11(true);
      jmsConfig.setTransactionManager(new JmsTransactionManager(connectionFactory));

      JMSConfigFeature jmsConfigFeature = new JMSConfigFeature();
      jmsConfigFeature.setJmsConfig(jmsConfig);
      endpoint.getFeatures().add(jmsConfigFeature);
      endpoint.publish();

      seems that the exception never arrive to AbstractMessageListenerContainer.doExecuteListener but it is catched inside

      Attachments

        1. jms_queue.zip
          15 kB
          Javier Puerto

        Issue Links

          Activity

            People

              Unassigned Unassigned
              javier Javier Puerto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: