There is no way to acknowledge via a MessageID, you need to call the message.acknowledge() method on a message (or alternatively JMSContext#acknowledge() exists, if using a JMSContext rather than Session)...which will then acknowledge all received unacked messages on the session.
Perhaps you could wrap the messages and pass along your own serializable container (which does not try to serialize the message objects themselves). On Fri, 24 Jan 2020 at 11:03, akabhishek1 <[email protected]> wrote: > > Hi Robbie, > > Thanks a lot for quick response. We got a situation, where we are in bottle > neck at this moment. > > Problem/Situation - We are using ServiceBus to receive the message and > acknowledge the message after completing all the process/transformation. > > As one of the processor(Mule Batch) needs every object should be > serializable. We can't acknowledge the message before batch execution which > could be reason for Message loss. > > As acknowledgement needs JMSMessage which is not serializable, so we are > trying to find out alternative to acknowledge message without using > JMSMessage object. > > Is there anyway to acknowledge message via Message ID? > > Could you please suggest or provide any hint to acknowledge message without > using JMSMessage object? > > Regards, > Abhi > > > > > -- > Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
