Re: PolicyMap api is really bad :-(

2012-01-18 Thread Dejan Bosanac
> > The api here is still a bit clunky IMO. Broker service for example will > automatically create a SystemUsage bits on demand, is there any reason why > BrokerService.getDestinationPolicy() doesn't create the PolicyMap on > demand? Or why PolicyMap isn't more builder-like? Guess most folks sti

Re: PolicyMap api is really bad :-(

2012-01-11 Thread Jason Dillon
On Jan 11, 2012, at 11:46 AM, Dejan Bosanac wrote: > there are a lot of examples on how to use destination in unit tests. For > example, how to set default destination policy see > > https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/policy/

Re: PolicyMap api is really bad :-(

2012-01-11 Thread Dejan Bosanac
Hi, there are a lot of examples on how to use destination in unit tests. For example, how to set default destination policy see https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/policy/IndividualDeadLetterTest.java?hb=true or how to set i