[
https://issues.jboss.org/browse/WFLY-10555?page=com.atlassian.jira.plugin...
]
Josef Cacek commented on WFLY-10555:
------------------------------------
The consumer code is similar to:
{code:java}
try (JMSConsumer consumer = context.createConsumer(destination)) {
while (true) {
String text = consumer.receiveBody(String.class, waitTime);
Thread.sleep(waitTime);
}
}
{code}
Do I undertand it correctly the {{createConsumer()}} call buffers bunch of messages
without knowing how many of them is the consumer able to receive?
And once the consumer is closed, are the messages released/returned to the queue on the
server?
Is there any option to say I don't want to buffer messages, but I want to receive them
one by one? (e.g I want to create more consumers running in parallel on a single queue.)
The list-messages and remove-messages don't work on a queue when
consumer is connected
---------------------------------------------------------------------------------------
Key: WFLY-10555
URL:
https://issues.jboss.org/browse/WFLY-10555
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 11.0.0.Final, 13.0.0.Final
Reporter: Josef Cacek
Assignee: Jeff Mesnil
Attachments: helloworld-jms.zip
The queue operations {{:list-messages}} and {{:remove-messages}} don't work (return
empty set) if a consumer is attached to the server.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)