I'm an ActiveMQ newbie but I've been readying ActiveMQ in Action and I've so
far seen two ways to potentially address #1.
If the message is temporary, set the JMSExpiration header for the message.
For a temporary queue (typically for request/response) pg. 162
public void start() throws JMSException {
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(brokerUrl);
connection = connectionFactory.createConnection();
connection.start();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination adminQueue = session.createQueue(requestQueue);
producer = session.createProducer(adminQueue);
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
tempDest = session.createTemporaryQueue();
consumer = session.createConsumer(tempDest);
consumer.setMessageListener(this);
}
Probably the blind leading the blind but just though I'd try to be helpful.
Todd
P.S. The book seems good so far.
On Mon, Aug 8, 2011 at 10:17 AM, jmls <[email protected]> wrote:
> I am having one hell of a time trying to get this combination working :(
> Having battled most of the night and all morning, I've thrown in the towel
> and decided to beg for help.
>
> I'm no longer proud :)
>
> Is there any documentation on how to
>
> 1) create a temporary queue
> 2) or create a queue that expires in (say) 2 hours time
> 3) get selectors working
>
> this all has to be using the REST api as there is no client library
> available for the platform I wish to use (the only thing that I have
> available is libcurl / curl )
>
> Many thanks, please put this old battered brain out of it's misery ;)
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/rest-temporary-queues-and-selector-tp3727106p3727106.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>