How do I speed up message consumption?

Solution Verified - Updated -


How do I speed up message consumption when using a consumer, as in:

            connectionFactory = new ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_USER, ActiveMQConnection.DEFAULT_PASSWORD, iptosend);
            connection = connectionFactory.createConnection();
            session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            Queue queue = new ActiveMQQueue(branchQueue);
            Destination destination = queue;
            consumer = session.createConsumer(destination);
            MyConsumer myConsumer = new MyConsumer();


Fuse Message Broker 5.7.0

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