JMS broker does not acknowledge messages in EAP 7.2.2

Solution Verified - Updated -

Issue

  • I have a load-balancing cluster consisting of two JBoss EAP 7.2.2 nodes. I sent a large TextMessage to the destination but the JMS broker did not acknowledge the message. This is causing the JMS broker to pile messages that have already been consumed. However, the broker acknowledged the message when I used JBoss EAP 7.1.5 or JBoss EAP 7.2 client library. Here's the onMessage() of my JMS client code:
@Override
    public void onMessage(Message message) {
        try {
            System.out.println("MSG " + message.getBody(String.class));
            connection.stop();
            session.commit();
        } catch (JMSException e) {
            //TODO      
               }
    }

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content