Hi Steve,

Take a look on org.apache.activemq.broker.region.policy.PolicyEntry 
(http://activemq.apache.org/maven/5.3.1/activemq-core/apidocs/org/apache/activemq/broker/region/policy/PolicyEntry.html)

Hope this helps,

-Marcelo




On May 19, 2011, at 12:17 PM, Steve Angelovich wrote:

> I have an embedded broker and I want to set specify which cursor to use 
> and some of the attributes.
> 
> When using the activemq.xml file I'm specifying something like;
> 
> <destinationPolicy>
> <policyMap>
> <policyEntries>
> <policyEntry topic=">" producerFlowControl="true" memoryLimit="50mb">
> <pendingSubscriberPolicy>
> <fileCursor />
> </pendingSubscriberPolicy>
> </policyEntry>
> <policyEntry queue=">" producerFlowControl="true" memoryLimit="50mb">
> <pendingQueuePolicy>
> <fileQueueCursor/>
> </pendingQueuePolicy>
> </policyEntry>
> </policyEntries>
> </policyMap>
> </destinationPolicy>
> 
> 
> Can somebody point me to an example or the right place in the javadocs 
> so that I can specify this information programmatically  when using an 
> embedded broker.
> 
> Thanks,
> Steve
> 
> ----------------------------------------------------------------------
> This e-mail, including any attached files, may contain confidential and 
> privileged information for the sole use of the intended recipient.  Any 
> review, use, distribution, or disclosure by others is strictly prohibited.  
> If you are not the intended recipient (or authorized to receive information 
> for the intended recipient), please contact the sender by reply e-mail and 
> delete all copies of this message.



Reply via email to