Question

I'm using the PHP Stomp Client (version 1.0.0) to connect and send messages to ActiveMQ (version 5.7.0).

I have read that if you subscribe to a destination called "/temp-queue/", this will trigger ActiveMQ to create a temporary queue.

However when I try this it creates a queue called "queue://temp-queue" instead of a temporary queue.

Is there any way to get Stomp to create a temporary queue on ActiveMQ?

Was it helpful?

Solution

If you are trying to create the temp queue and only using the name "/temp-queue/" then that's the problem, the temp-queue portion is the destination prefix, you still need to give it a name like "/temp-queue/1234" or some such. Usually the name value comes from a UUID or some other unique Id generator.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top