activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Strasheim <>
Subject Re: Fast producer, slow consumer with spooling to disk?
Date Mon, 29 Jan 2007 12:11:13 GMT
Hey Rob

Thanks very much for this. I'd like to try this in our unit tests, which 
is the first place we've been running into these problems (testing a 
slow consumer with "fake" data, which is produced very fast).

Is there a way to configure policies using the broker URL or in the 
queue/topic name (after the ?) from code? For our unit tests, we're 
currently using an embedded broker, so this would makes things 
relatively simple. Alternatively, is there a way to make an embedded 
broker parse XML configuration somehow?

Thanks again.



On Mon, 29 Jan 2007, Rob Davies wrote:

> Hi Albert,
> from the latest in SVN it's possible to configure the cursor used for  
> a topic subscriber - which by default is file based. If you use a VM  
> based cursor, as messages aren't removed from memory (to spool to  
> disk) - the producer should block. You can configure the cursor type  
> using destination policies: 
> xbean-xml-reference-41.html#XBeanXMLReference4.1-policyEntryelement
> An example is:

View raw message