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 [email protected] Twitter: @dejanb Blog: http://sensatic.net ActiveMQ in Action: http://www.manning.com/snyder/ On Mon, Nov 26, 2012 at 10:52 PM, Spaghettirocker <[email protected]> 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.
