How to test prefetch size is actually working

2016-03-20 Thread Raffi
Is there a JMX metric for testing prefetch=1 vs prefetch=100? I want to confirm reduced network activity between consumer and broker when using large prefetchSize. DispatchedCounter and DispatchedQueueSize appear to increment/decrement by 1, never consistent with prefetchSize. I'm missing something

Re: ActiveMQ Queue TTL

2016-03-20 Thread Timothy Bish
Take a look at the TimeStampPlugin which has an option to set a TTL on messages that arrive without one. http://activemq.apache.org/timestampplugin.html On 03/18/2016 12:38 AM, Tim Bain wrote: Time to live must be set by the producer; I'm not aware of a built-in way to set it from the broker.

Re: Queue hanging with n to n network of brokers

2016-03-20 Thread Lucas Dias
Hello again, I've done exhaustive testing and I ended up finding this URL: https://issues.apache.org/jira/browse/AMQ-3446?jql=status%20in%20(Open%2C%20%22In%20Progress%22)%20AND%20text%20~%20%22network%20of%20broker%22 The case is the same one as the one I've set up. I would like to focus the fo

Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-20 Thread Adel Boutros
Hello, I was wondering if there is a way to configure a Virtual Destination programmatically using the Jolokia REST Api? I explored the JMX module using JConsole but found no possible solution. I am following the example here: http://activemq.apache.org/virtual-destinations.html Regards, Adel

Re: Message not redirected to DLQ when exception thrown by MDB

2016-03-20 Thread Tim Bain
Sorry if you've said this already (it rings a bell but I couldn't find it when I scanned this thread), but why is the AuthorizationInterceptor saying that your onMessage() method is disallowed? EJB Invocation failed on component TestMessageBeanLow for method public void de.adesso.tma.test.ejb. ic

Re: Exception in createSesson() inside an EJB user transaction

2016-03-20 Thread THMayr
Hi Tim, thanks for your idea! I'm compiling against activemq-client-5.13.1.jar and deployed this jar in the EAR. Due to the fact that the resource adapter activemq-rar-5.13.1.rar contains this jar, too, I removed the JAR from the EAR. I got the same exception. To be shure, I extracted the activemq