In my situation, a remote client is sending messages to wso2esb which is acting as a proxy to forward messages to ActiveMQ. Once the remote client receives an acknowledgement of message receipt by wso2esb, it deletes the message from its local storage. So it is very important for me to send an acknowledgement to the remote client only after ActiveMQ has received the message from wso2esb and has stored it in persistent storage. ( Store and Forward to consumers pattern ).
All I could find to read up on activemq acknowledgement is about ActiveMQ getting acknowledgement once a consumer collects a message from ActiveMQ and sends back an acknowledgement to activemq including transactions etc. But I could not find anything on a producer getting an acknowledgement back from activemq once activemq has received the message from the producer.
How do I configure ActiveMQ to send an acknowledgement to wso2esb acting as proxy producer?