We use ActiveMQ, php and stomp. And we found that when ActiveMQ rebooted consumers working over stomp can't recognize that connection lost. I found, that only stomp 1.2 support heartbeat. And ActiveMQ uses stomp 1.1 and newest php stomp implementation support only 1.0 version. Also i try amqp, but newest implementation that i found for php support 0.9.1, ActiveMQ uses 1.0 version and when client connecting ActiveMQ return error:
WARN | Connection attempt from non AMQP v1.0 client. AMQP,0,0,9,1
WARN | Transport Connection to: tcp://127.0.0.1:42168 failed: org.apache.activemq.transport.amqp.AmqpProtocolException: Connection from client using unsupported AMQP attempted
Also i try compile qpid proton, but i have some problems in ubuntu and i confused by their php examples: https://qpid.apache.org/releases/qpid-proton-0.8/messenger/php/examples/recv.php.html Where can i find proton.php for including?
Which transport i should choose?