activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <>
Subject Re: how can i config to let amq remove the queue message when timeout
Date Mon, 26 Dec 2011 11:30:40 GMT
Since you're using Spring, and using JmsTemplate to send messages, make use
of "void org.springframework.jms.core.JmsTemplate.send(Destination
destination, MessageCreator messageCreator) throws JmsException" and
implement MessageCreator which will set JMSExpiration

sendTimeout and receiveTimeout have nothing to do with Message JMSExpiration


On Mon, Dec 26, 2011 at 12:06 PM, eric wen <> wrote:

> hi,
>    i have a program which receive client request and then transfer the
> message via amq to a processor which watches on the specified queue.
> However, the processor may not start up while the cilent request arrives,
> then amq will then store this message temporarily, and after the processor
> start up, amq will send this store message to the processor.
>    what i'm wondering is, how can i let amq to remove this temporary
> message after some time the processor is not available or let amq do not
> send this 'timeout' temporary message to the processor when is started.
>    i had tried to set the sendTimeout property on the ConnectionFactory
> which looks like this:
>    <spring:bean id="activeMqConnectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory">
>        <spring:property name="brokerURL" value="tcp://localhost:61616" />
>        <spring:property name="userName" value="system" />
>        <spring:property name="password" value="manager" />
>        <spring:property name="sendTimeout" value="30000" />
>    </spring:bean>
>    but it seems doesn't work,wish your reply
>    eric wen
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message