activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shridharv <>
Subject Re: HTTP: Destination & Type in URL, message content does not saved
Date Fri, 14 Nov 2008 19:58:22 GMT

Found the solution..
When destination and type are in url, for the binary data to be in the
message content, the content-type has to be set as text/xml (the
messageservlet only looks at the message content in this case, normally
looks only for a body parameter) and the binary data to be encoded (we used

In 5.1 in for sending multiple messages in one socket open, have to send the
cookie to amq from the second message onwards, else it generates a new
cookie each time, and i think this leaves sessions loitering around in
jetty, leading to out-of-memory after a while..In 5.2 this has been
addressed by a consumerid parameter (not tested by me yet)..

shridharv wrote:
> Writing a simple http client without a http library;
> 1. formatted the http header with ?destination=Qname&type=queue
> 2. payload is in the content with the content-length set correctly
> 3. message gets added to queue Qname
> 4. The mesage in the queue does not have any payload data
> 5. we need to do it this way as the data is binary and the
> content-type=application/octet-stream
> Can someone point to the right way out ???
> shridhar

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message