You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Domenico Francesco Bruscino (Jira)" <ji...@apache.org> on 2022/03/18 09:36:00 UTC

[jira] [Created] (ARTEMIS-3729) JMS CORE client session commit doesn't work after async sends

Domenico Francesco Bruscino created ARTEMIS-3729:
----------------------------------------------------

             Summary: JMS CORE client session commit doesn't work after async sends
                 Key: ARTEMIS-3729
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3729
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Domenico Francesco Bruscino
            Assignee: Domenico Francesco Bruscino


Invoking the commit on a transacted session using the JMS CORE client doesn't works after sending async messages. The JMS CORE client doesn't wait for server commit response.

{code:java}
        ActiveMQConnectionFactory activeMQConnectionFactory =
            new ActiveMQConnectionFactory(connectionURL);
        Connection  activeMQConnectionFactory.createConnection();
        Session session = connection.createSession(Session.SESSION_TRANSACTED);
        MessageProducer producer = session.createProducer(null);

        producer.send(activeMQTopic, createMessage(session, id), instance);
        session.commit();
{code}




--
This message was sent by Atlassian Jira
(v8.20.1#820001)