Re: ActiveMQ master-slave topology issue[BUG]

2015-06-12 Thread James A. Robinson
All the issues you've seen with NFS matches up well with everything I've seen dealing with NFS storage over the past 18 years. I had always thought "maybe we're just doing it wrong," but I think everything you outlined looks familiar to me. When we decided to try using ActiveMQ a few months ago t

Re: ActiveMQ master-slave topology issue[BUG]

2015-06-12 Thread Stephan Burkard
Hi Tim First we had hard NFS mounts (seems to be a common recommendation for NFS). When the NFS connection was interrupted for some minutes (more than the NFS lock timeout), the former slave broker became master as soon as the NFS connection was ok again. In contrast the former master broker *neve

Re: Allowing another consumer to have a message (ActiveMQ-CPP)

2015-06-12 Thread Tim Bain
It sounds like you can reproduce this reliably; can you submit a bug report in JIRA and attach the client code and broker config that produce the behavior? (The simpler the better; do your best to cut out anything that isn't necessary to show the problem.) If you want to trace the code yourself a

Re: ActiveMQ master-slave topology issue[BUG]

2015-06-12 Thread Tim Bain
Stephan, can you describe which NFS settings resulted in which behavior? On Jun 12, 2015 8:34 AM, "Stephan Burkard" wrote: > Anuj > > Have a look at https://issues.apache.org/jira/browse/AMQ-5549 > > You cannot avoid to have either two or zero master-brokers online during a > failover. The questi

Re: how to find different message states (ideal,running,stop) in active MQ

2015-06-12 Thread KrishKumar
What are you trying to achieve even? Lifetime of a "normal business txn message" is in nano-seconds. You want to add these layers of auditing (supposedly) which will add significant overhead as there is no parallel inbuilt auditing capabilities. Which means amq will try to process your business

Re: Errors trying to build ActiveMQ-5.5.1 from source

2015-06-12 Thread Christopher Shannon
You can't use JDK 8 to build a version that old, try using JDK 6. JDK 7 support was added in ActiveMQ 5.7.0 and JDK 8 support was added in ActiveMQ 5.10.0 On Fri, Jun 12, 2015 at 11:54 AM, bbuzzard wrote: > Yes I know there are newer versions, but I'm trying to build ActiveMQ-5.5.1 > from sourc

Errors trying to build ActiveMQ-5.5.1 from source

2015-06-12 Thread bbuzzard
Yes I know there are newer versions, but I'm trying to build ActiveMQ-5.5.1 from source using Maven 3.0.5 and jdk1.8.0_11, but I'm running into errors when compiling activemq-core. Can anyone tell me how to get past these errors. I'm including a snippet below: [INFO] Compiling 15 source files to

ActiveMQ 5.10 Maven plugin Connection Refused error for Blob Message

2015-06-12 Thread harishkannarao
Hi All, I am using ActiveMQ 5.10 in our project. We are using Maven as the build tool and recently we started using ActiveMQ maven plugin for integration testing. The settings is as given in the attached pom.xml The maven plugin worked for most of the cases, however I am getting connection refused

Re: ActiveMQ master-slave topology issue[BUG]

2015-06-12 Thread Stephan Burkard
Anuj Have a look at https://issues.apache.org/jira/browse/AMQ-5549 You cannot avoid to have either two or zero master-brokers online during a failover. The question is how long this situation lasts (see Arthur Naseef's comment on AMQ-5549). In my failover-tests with NFS shared storage I was able

Re: Allowing another consumer to have a message (ActiveMQ-CPP)

2015-06-12 Thread spamtrap
On Fri, 12 Jun 2015 06:56:42 -0600, Tim Bain wrote: I was calling session.start() after calling session.stop(). If I change it to deleting and re-creating a session object the message still disappears, but this time when I re-create the consumer object (i.e. not when the session starts). >Does

Re: Allowing another consumer to have a message (ActiveMQ-CPP)

2015-06-12 Thread Tim Bain
Does restarting the session mean creating a new session object, or calling start() on the current one after calling stop()? Is the behavior the same if you do it the other way? On Jun 12, 2015 4:30 AM, "spamtrap" wrote: > On Thu, 11 Jun 2015 14:01:16 -0600, Tim Bain > wrote: > > >Confirm that s

Re: how to find different message states (ideal,running,stop) in active MQ

2015-06-12 Thread Tim Bain
There are a lot more than three thread states: http://booxs.biz/images/java/thread-states.png If all you want to know is how long your message handler took, can you use a profiler and just send one message? That's probably the easiest option. If you're sending more than one message, what do you

Re: Allowing another consumer to have a message (ActiveMQ-CPP)

2015-06-12 Thread spamtrap
On Thu, 11 Jun 2015 14:01:16 -0600, Tim Bain wrote: >Confirm that step by step. Are the messages still on the broker when the >transaction rolls back? Are they still on the broker when the client >disconnects? Wherever you lose them, the previous step is the one to >investigate. I've now done

Re: how to find different message states (ideal,running,stop) in active MQ

2015-06-12 Thread mayank_inno
Hi Tim, Thanks for your answer.. But my question is that, When we send any message to active MQ. Then consumer process that message. So i want only when processing of message started , in-process state time , process completion time. Just like there are three state in thread .running , process ,