Optimised acknowledgement in NMS

2012-06-15 Thread newtonsri
Hi, I am experimenting with NMS. I want to set the acknowledgement mode to optimised acknowledgement. When I refered to material I found that we can do so by using the ActiveMQConnectionFactory instance. Unfortunately ActiveMQConnectionFactory is not available in C#. Can someone throw light on how

Test if broker is alive?

2012-06-15 Thread stephenju
How do I test if a broker/server is alive in ActiveMQ-CPP? If the server is down and I call cms::Connection::start(), it just hangs. I tried some failover options like this and it doesn't work: -- View this message in context: http://activemq.2283324.n4.nabble.com/Test-if-broker-is-alive-tp4653

Re: AjaxServlet amq timeout issue

2012-06-15 Thread youngfu
Update: I was able to get past this issue. FYI, I set amq.poll = false; This prevented the polling connection from being created and allowed the async callback to be used via continuations. -- View this message in context: http://activemq.2283324.n4.nabble.com/AjaxServlet-amq-timeout-issue-t

AjaxServlet amq timeout issue

2012-06-15 Thread Michael Harrison
I am using the AJAX client functionality implemented in _amq.js and am having difficulties receiving notifications. When the startPolling() function in amq send the ajax request to the servlet with the hardcoded "timeout=0" my listener never receives notifications (the polling connection is open).

Re: change strategy for determining failure of primary in JBDC-backed setup

2012-06-15 Thread Gary Tully
just to close the loop on this. I implemented a lease based database locker that can be tolerant to temporary database outage, like a failover migration in a cluster or maintenance restart. It may provide an alternative solution. It is available in a current 5.7-SNAPSHOT Some more detail in this

RE: Problem in asynchronous dispatch of message

2012-06-15 Thread Cristiano Ghersi
Thanks Gary, this is exactly what I was searching for! Is there a proper way to configure broker logging in order to capture the reason why the call blocks? Do I need to search in my application logs (I'm using log4j in my environment ) or is there a custom file for ActiveMQ? May I check anything

Re: Cascading SlowConsumer Advisories

2012-06-15 Thread Dejan Bosanac
Seems like Tim already fixed it https://issues.apache.org/jira/browse/AMQ-3882 Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net ActiveMQ in Action: http://www.manning.co

Re: Cascading SlowConsumer Advisories

2012-06-15 Thread Dejan Bosanac
Hi, it looks like indeed you have a slow consumer on "slow consumer" advisory topic. Can you raise a jira for this? Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net A