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)

Reply via email to