E
E
Egor Petrov2015-12-11 14:37:45
PHP
Egor Petrov, 2015-12-11 14:37:45

Which transport to choose for ActiveMQ allowing you to restore the connection?

We use ActiveMQ, PHP and Stomp. And there is one problem with stomp - it cannot detect when the connection is lost. Heartbeat in stomp was added only in version 1.2, while ActiveMQ only supports 1.1, and for php there is no implementation fresher than 1.0.
I also tried Amqp, but for it the php implementation was found only in version 0.9.1, and ActiveMQ uses version 1.0. And when the consumer tries to connect to the broker, he gives an 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

Now I'm dealing with this wonderful thing: https://qpid.apache.org/releases/qpid-proton-0.8/m... but I can't figure out where I can get the proton.php that they include. However, I only managed to assemble it after editing the make-files. I understand further.
Actually, the question is, what is the best way to use a transport in this environment that could automatically reconnect to the broker?
PS: I haven't tried openwire yet, I didn't find php-implementation for it right off the bat, I'll look for it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2015-12-11
@romy4

Sometimes it's better to change the queue. Why ActiveMQ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question