-
1. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 11, 2015 6:28 PM (in response to kevingscott111)Messages sent from a push subscription to a URL are automatically acknowledged if the push is successful. You can turn on debug level logging for org.hornetq.rest.HornetQRestLogger to see details of this. It would be helpful to see this logging if the message is not being acknowledged appropriately.
-
2. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
kevingscott111 Mar 11, 2015 8:07 PM (in response to jbertram)Hi Justin,
Thanks for the response. I tried to turn on the logging for the HornetQRestLogger but I'm still seeing any more logging. Do you have example of turning the logging level on in JBoss 6?
I tried setting the loggers line in logging.properties thus:
loggers=org.jboss.system.server.ServerInfo,org.hornetq.rest.HornetQRestLogger
Thanks
-
3. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 11, 2015 9:10 PM (in response to kevingscott111)Are you talking about JBoss EAP 6 or JBoss AS 6?
-
4. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
kevingscott111 Mar 11, 2015 9:17 PM (in response to jbertram)Sorry for the confusion. It's JBoss AS 6.1
-
5. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 12, 2015 11:58 AM (in response to kevingscott111)The logging configuration for JBoss AS 6.1 is in <JBOSS_HOME>/server/<profile>/deploy/jboss-logging.xml.
Also, what version of HornetQ are you using? This may change the logger name I indicated previously.
-
6. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
kevingscott111 Mar 12, 2015 12:23 PM (in response to jbertram)Unfortunately, we are stuck on HornetQ 2.2.14 because that's what our business partner is using
-
7. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 12, 2015 12:54 PM (in response to kevingscott111)Technically speaking, things are a bit different in later versions but the semantics are roughly the same - the message should be acked if the URL push succeeds. However, the logging category would be "org.hornetq.rest.queue.push.PushConsumer".
-
8. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
kevingscott111 Mar 12, 2015 2:46 PM (in response to jbertram)Hi Justin,
Thanks for your help, I increased the logging level for PushConsumer and now I see messages in the log like
2015-03-12 14:43:43,216 DEBUG [org.hornetq.rest.queue.push.PushConsumer] (Thread-0 (group:HornetQ-client-global-threads-770715614)) Acknowledging: 40802189549
However, the new message still shows up in the "Delivering Count" in the JMS Queues screen of the Admin Console, so I believe that they aren't being acknowledged. Are there other classes that I should try to increase logging for?
-
9. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 12, 2015 3:10 PM (in response to kevingscott111)Looking more closely at the code I believe I see a problem. The message is being acknowledged, but the session used to consume the message is created with autoCommitAcks = false and the session is never committed by the PushConsumer which means the message is never truly acknowledged. I see now that this problem was already fixed upstream and that's why the code is different. I recommend you and your business partner upgrade.
-
10. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
jbertram Mar 12, 2015 3:11 PM (in response to jbertram)Here's the JIRA related to the problem https://issues.jboss.org/browse/HORNETQ-1091. It was reported and fixed in November 2012.
-
11. Re: What is the proper way to acknowledge a message in a REST Push Consumer?
kevingscott111 Mar 12, 2015 5:35 PM (in response to jbertram)Justin Bertram wrote:
. I recommend you and your business partner upgrade.
Yea, I think we are going to have to. Thanks for your help!