activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Setting the TimeToLive parameter via Ajax?
Date Tue, 27 Nov 2012 09:24:24 GMT
Hi,

as far as I can see it, there's a

var sendJmsMessage = function(destination, message, type, headers)

method, so you should be able to provide a custom header for the
message. The servlet expects JMSExpiration header, so it's not time to
live but the timestamp when the message expires.

Regards
--
Dejan Bosanac
----------------------
Red Hat, Inc.
FuseSource is now part of Red Hat
dbosanac@redhat.com
Twitter: @dejanb
Blog: http://sensatic.net
ActiveMQ in Action: http://www.manning.com/snyder/


On Mon, Nov 26, 2012 at 10:52 PM, Spaghettirocker
<spaghettirocker@googlemail.com> wrote:
> Hi there,
>
> I am using the activemq ajax interface to send messages.
>
> I've searched for it quite a long time now, but is it possible to set the
> JMSTimeToLive value with the ajax interface?
>
>
> The function amq.sendMessage(myDestination,myMessage); doesn't seem to have
> a TimeToLive parameter?
>
> Is there a way to set it via Ajax?
>
> I've tried to set it with an URL parameter, but it didn't work.
>
> Tried it like this "<amqurl>?JMSTimeToLive=10000"
>
>
> Thanks for your help!
>
> Regards
> Rlf
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Setting-the-TimeToLive-parameter-via-Ajax-tp4659772.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message