I'm using Spring JMS template.  The code is:
try {
      jmsTemplate.convertAndSend(Destination, Object);
 } catch (JmsException e) {
     //Do Something
 }

If the connection/port is frozen, will it go to exception case when it is 
timeout (default timeout=300ms?)?  The execution will be blocked until the 
producer receives ACK, correct?

Thanks

Rahman

-----Original Message-----
From: Justin Bertram <jbert...@apache.org> 
Sent: Tuesday, October 26, 2021 1:45 PM
To: users@activemq.apache.org
Subject: [EXTERNAL] Re: ActiveMQ classic Producer ACK question

Yes. This is done automatically for persistent messages sent from the OpenWire 
JMS client. See the documentation [1] for more details.


Justin

[1] 
https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fasync-sends&amp;data=04%7C01%7Crahman.gunawan%40nasa.gov%7C43e43b6086814b27e65208d998a86959%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637708671358000216%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=G8QDxMkGjJMTec%2BNxh6NIrHQKBSeF8bLs63dwyxH%2FnY%3D&amp;reserved=0

On Tue, Oct 26, 2021 at 12:40 PM Gunawan, Rahman (HQ-LP013)[BUSINESS INTEGRA, 
INC.] <rahman.guna...@nasa.gov.invalid> wrote:

> I'm using ActiveMQ 5.15.11.  Is there a way for producer to receive 
> acknowledgement (ACK) from ActiveMQ?  The producer needs to know if 
> the message is received by activeMQ in case of activeMQ port is hung 
> or bad connection.
>
> Thanks
>
> Rahman
>

Reply via email to