-
1. Re: Getting alerted that a queue does not exist with stomp send?
Tom Jenkinson Nov 4, 2010 7:54 AM (in response to Tom Jenkinson)To clarify, I was expecting an ERROR frame, rather than the RECEIPT frame.
Tom
-
2. Re: Getting alerted that a queue does not exist with stomp send?
Andy Taylor Nov 4, 2010 7:57 AM (in response to Tom Jenkinson)The Stomp protocol does not specify what should happen in this case, its up to the server implementation as far as i understand it.
-
3. Re: Getting alerted that a queue does not exist with stomp send?
Tom Jenkinson Nov 4, 2010 8:02 AM (in response to Andy Taylor)Thanks for the feedback Andy, is there any way a client can determine if a queue exists or not from the stomp protocol?
-
4. Re: Getting alerted that a queue does not exist with stomp send?
Andy Taylor Nov 4, 2010 8:07 AM (in response to Tom Jenkinson)not at present, we may be able to add something tho, feel free to raise a jira
-
5. Re: Getting alerted that a queue does not exist with stomp send?
Tom Jenkinson Nov 4, 2010 8:10 AM (in response to Andy Taylor)Thanks Andy, will do.
-
6. Re: Getting alerted that a queue does not exist with stomp send?
Tim Fox Nov 4, 2010 5:27 PM (in response to Andy Taylor)Andy Taylor wrote:
not at present, we may be able to add something tho, feel free to raise a jira
It should be possible already.
You should be able to use the management API over the STOMP connection. After all the management API is accessible to any client by sending messages to the special management address, just the same as in JMS. This is covered in the user manual.
-
7. Re: Getting alerted that a queue does not exist with stomp send?
Clebert Suconic Nov 4, 2010 10:17 PM (in response to Tim Fox)I believe he's talking about throwing an exception case the destination doesn't exist, not how to do a query through management for an existent destination.
Other providers such as ActiveMQ will auto-create the JMS queue for a stomp queue, and I have seen some users complaining about it. I'm not sure yet if we should add a setting or not.. but I have seen users complaining/requesting this kind of thing.
-
8. Re: Getting alerted that a queue does not exist with stomp send?
Tom Jenkinson Nov 5, 2010 4:55 AM (in response to Clebert Suconic)Hi,
You are correct, I would prefer an exception in the case that the destination doesn't exist. I could do what Tim suggested but it leaves a window where I can send a message to an "empty sink".
1. User1 checks destinationA exists say by using management API over Stomp
2. User1 receives response that destinationA exists
3. User2 deletes destinationA
4. User1 sends a message to destinationA, without an exception he now believes the message has been queued but actually the queue was delete by User2 in step 3 above so the message has been silently discarded
Hope this clarifies,
Tom
-
9. Re: Getting alerted that a queue does not exist with stomp send?
Tom Jenkinson Nov 5, 2010 4:56 AM (in response to Tom Jenkinson)When I said "exception" I meant ERROR frame from Stomp - sorry