Re: Does a timeout exist for Consumers?

2010-06-22 Thread Luis Matos
Gary, it would take me a while to learn how to do a decent and lean Junit test case that runs on servicemix so that I could make the exact test case that happens to me. Alternatively, I can send you a Vmware virtual machine with the whole thing there ready to work, including sources, environment t

Re: Does a timeout exist for Consumers?

2010-06-18 Thread Luis Matos
Hi Gary, I did manage to put the strategy to work, but it's giving a lot of exceptions. I tried with different values on the parameters, but the result is similar always. My test is done with 2 karafs connected to a broker. I send 1 messages from a producer and wait to see if they arrive on

Re: Does a timeout exist for Consumers?

2010-06-16 Thread Luis Matos
Just to add, I've also tried with: and and both give errors . an failed; n

Re: Does a timeout exist for Consumers?

2010-06-16 Thread Luis Matos
Hi Gary, First of all, thanks for the answer. In the meantime, I've tried to use the 5.4-SNAPSHOT using the maven plugin and pointing to apache.snapshots or to codehaus snapshots like this: ---

Does a timeout exist for Consumers?

2010-06-15 Thread Luis Matos
In case a consumer can't process a message but is still active, the pre-fetched messages for that consumer get stuck on activemq. Is there no way to setup a consumer timeout, i.e., after some time activemq "gives up" on that consumer and sends them to another consumer? -- View this message in c

How to implement a customized message DispatchPolicy?

2010-06-02 Thread Luis Matos
Hi, I would like to know how to write my own DispatchPolicy. My case is a variation of the RoundRobinDispatchPolicy but with some quirks. Is there helpful examples somewhere of how to successfully customize the DispatchPolicy? Something like a step-by-step process (not too detailed, but enough th