Hi,

I'm (very) inexperienced with AMQP so this may be a silly question...

I'm using Proton-J from a standalone Java program to interact with queues 
hosted by an ActiveMQ Artemis broker.

So long as there is a regular message flow between the client and the broker, 
everything is fine.

If there is a pause in the message flow (for 60 seconds, give or take) then the 
broker starts to complain, writing messages in the log such as:

"2016-09-15T12:42:32,308 155833 [Thread-7 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$2@2368231c-1759089888)]
 WARN  o.a.activemq.artemis.core.client - AMQ212037: Connection failure has 
been detected: AMQ119014: Did not receive data from /127.0.0.1:62229. It is 
likely the client has exited or crashed without closing its connection, or the 
network between the server and client has failed. You also might have 
configured connection-ttl and client-failure-check-period incorrectly. Please 
check user manual for more information. The connection will now be closed. 
[code=CONNECTION_TIMEDOUT]"

I think I can work around this by making my clients send "heartbeat" messages 
on a regular basis, however if there is some kind of AMQP heartbeat capability 
in the Proton-J client I'd rather use that.

Does Proton-J have the ability to send whatever an AMQP broker expects to 
receive as a heartbeat? If so, how do I set it up?

Thanks, Andy

[cid:image012.png@01D17AF7.D972DF70]<http://www.oneadvanced.com/>
Andy Redhead
Principal Consultant > Solutions > Advanced
________________________

Advanced
230 City Road, London, EC1V 2TT
t: 020 7880 8888 > m: 0781 392 5246

www.oneadvanced.com<http://www.oneadvanced.com/>
[cid:image018.png@01D17AF7.D972DF70] <http://www.linkedin.com/company/2426258> 
[cid:image019.png@01D17AF7.D972DF70] <https://twitter.com/Going_Advanced>
> A Sunday Times Top Track 250 Company 2015
> Ranked in UK's 50 fastest growing technology companies 2014


***** Email confidentiality *****

This message is private and confidential. If you have received this message in 
error, please notify us and remove it from your system. The dissemination, 
copying or distribution of this message, or related files, by anyone other than 
the intended recipient is strictly prohibited.



Any views or opinions expressed are solely those of the author and do not 
necessarily represent those of Advanced 365 Limited.



***** Email monitoring *****

Advanced 365 Limited may monitor email traffic data and also the content of 
email for the purposes of security and staff training.



***** Email security *****

In keeping with good computing practice, the recipient of this email should 
ensure that it is virus-free. Advanced 365 Limited does not accept 
responsibility for any virus that may be transferred by way of this email.



Email may be susceptible to data corruption, interception and/or unauthorised 
amendment. Advanced 365 Limited does not accept liability for any such 
corruption, interception or amendment or any consequences thereof.



This email has been scanned for viruses by the Symantec Email Security.cloud 
service.



Advanced 365 Limited, part of the Advanced Computer Software Group

Registered office: Ditton Park, Riding Court Road, Datchet, Berkshire, SL3 9LL, 
UK

Registered in England under number 2124540

________________________________

Please consider the environment: Think before you print!

Reply via email to