This seemed a little involved :D . For non persistence , I tried editing the activemq/conf/activemq.xml as : <broker xmlns="http://activemq.apache.org/schema/core" brokerName="local host" dataDirectory="${activemq.base}/data" persistent="false"> to add a "persistent=false" attribute.
In the activemq logs, I could see JMS message objects arriving as persistent=true. Does this mean that (since the default message delivery mode is PERSISTENT), despite any such configuration settings on the activemq.xml , the messages will continue to pass as persistent. Thanks for the help again. -Eric. Dejan Bosanac wrote: > > Hi Eric, > > It's best to create a broker plugin that will do that work for you. Take a > look at http://activemq.apache.org/interceptors.html for more info > > Cheers > -- > Dejan Bosanac > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > > > On Fri, Jun 26, 2009 at 12:16 PM, ericne <ericn.gro...@gmail.com> wrote: > >> >> Hi, >> >> Non Persistence and Message Expiry time(time to live) are >> javax.jms.Message >> properties. >> >> But is it possible to set these at the broker level, such that every >> message >> arriving at a Queue is non-persistent and has a fixed time to live. I do >> not >> wish to modify the message producer where these properties could have >> been >> more conveniently set. >> >> Thanks very much in advance. >> Eric. >> -- >> View this message in context: >> http://www.nabble.com/Setting-non-persistence-and-message-expiry-at-broker-level-tp24217908p24217908.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > > ----- > Dejan Bosanac > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > -- View this message in context: http://www.nabble.com/Setting-non-persistence-and-message-expiry-at-broker-level-tp24217908p24219397.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.