-
1. Re: how can i get notified by hornetq when message is consumed?
leosbitto Aug 19, 2011 3:35 AM (in response to galanfish)Send a message from appliactionB to some queue in the same session which consumes the message. Consume messages from that queue by applicationA.
-
2. Re: how can i get notified by hornetq when message is consumed?
galanfish Aug 19, 2011 5:40 AM (in response to leosbitto)thanks leos. it seems work. but is there any other solutions that using api or internal api fits for this scenario?
-
3. Re: how can i get notified by hornetq when message is consumed?
leosbitto Aug 19, 2011 6:06 AM (in response to galanfish)AFAIK there is no other option if you want to keep the loose coupling between applicationA and applicationB which the messaging provides. You could remove the messaging and do a synchronous call from applicationA to applicationB instead, if that would suit your needs better...
-
4. Re: how can i get notified by hornetq when message is consumed?
galanfish Aug 19, 2011 6:32 AM (in response to leosbitto)thankyou leos.
actually, i use hornetq as an embedded component inside applicationA, i use the hornetq core api/internal api directly. the applicationB will acknowledge the hornetq component which is inside applicationA, so i'd like that this component could expose its public/internal events to applicationA such like 'a message has just now been consumed'. the hornetq component itself could remove the jouornal my receiving the client acknowledge, i just need something like that.