Tony,

having experimented with your code to catch `exn:stomp` exception, this is
what I got first:

"Disconnected before receipt "R14642" was received"

There are two "sends" in the code, and it is actually the second call that
causes the error. With a single send, no error is signalled but nothing is
retuned either. Taking away "(receipt ,receipt)" from send had no effect.

br, jukka


> On 08/06/2015 02:03 PM, Jukka Tuominen wrote:
>> From a generic STOMP documentation I’ve understood that I should send a
>> ”reply-to” header item with a temporary queue value, but I’m not sure
>> about the format I should use in racket-stomp. I tried...
>> #:headers `((receipt ,receipt)(persistent "true")(reply-to
>> "/temp-queue/foo"))
>> ... which returned  ”Received ERROR” without further information.
>
> You need to catch the `exn:stomp` exception, which includes the error
> frame; untested example code:
>
>   (with-handlers [(exn:stomp? (lambda (e)
>                                  (log-error "STOMP error ~v"
>                                             (exn:stomp-frame e))))]
>     ...)
>
> Also, it is a good idea to check the logs of whichever broker you are
> using.
>
>> Also, even though the target computer is able to receive the message,
>> I’m
>> not sure how to make it to respond with a value.
>
> Which broker are you using?
>
> Cheers,
>   Tony
>


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to