Re: network of broker stop forwarding messages without advisorySupport enabled

2011-03-24 Thread anuhbava
Hi Gary, Thanks for your thoughtful response once again. I tried adding htis call in my code: connectionFactory.setClientIDPrefix("ID:ReplyDest.hostname"); And then added this in activemq.xml in staticallyIncludedDestinations tag: "/> However I noticed that ActiveMQ ignored prefix string set

Re: Inspecting queue depth with ActiveMQ API vs JMX

2011-03-24 Thread mar...@attivio.com
To be honest I've had a tough time doing this with the API. Our goals may be a bit different from yours, we are trying to determine how many messages are on the queue that have not been picked up by a consumer. One of the issues is dealing with prefetch sizes for different consumers and taking th

Re: OutOfMemoryError: unable to create new native thread

2011-03-24 Thread Jeremy Levy
*java.lang.OutOfMemoryError: unable to create new native thread* Generally means that there isn't enough free memory for the OS to create a new thread. I would suggest freeing up memory on the machine or REDUCING the heap size of the JVM. J On Thu, Mar 24, 2011 at 8:08 AM, Laures wrote: > Hi,

Re: Failover, how does it work?

2011-03-24 Thread Timothy Bish
On Thu, 2011-03-24 at 13:27 +0100, Oscar Pernas wrote: > Hi all (again), > > > Im trying to understand well, how the failover transport works. I know that > if you have an active-pasive architecture and your active broker goes down, > all messages are send to the pasive broker. But, for example,

Failover, how does it work?

2011-03-24 Thread Oscar Pernas
Hi all (again), Im trying to understand well, how the failover transport works. I know that if you have an active-pasive architecture and your active broker goes down, all messages are send to the pasive broker. But, for example, if we have a machine that have configured an active-pasive brokers

ACTIVEMQ-CPP. Someone is using it under windows XP?

2011-03-24 Thread Oscar Pernas
Hi all, Why I try to run activemq-cpp in windows environment, with this kind of uris: failover://(tcp://localhost:61616)?startupMaxReconnectAttemps=3&initialReconnectDelay=3000 if a producer configured in failover with only one ip but non-blocking (with maxreconnect attemps and initialreconnect

OutOfMemoryError: unable to create new native thread

2011-03-24 Thread Laures
Hi, I'm currently load testing the native REST Api of activemq on our hardware. I'm using pylot to generate several users. Some time into the test i start to get: WARN | Error for /rest/message/FOO/BAR java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.st

Re: Connection ClientId Identifier and AdvisoryMessage.

2011-03-24 Thread Gary Tully
You got to use ConnectionInfo.getConnectionId(), and your supplied clientIDPrefix will be the start of the returned id. fyi, the java doc from the website is a good reference: http://activemq.apache.org/maven/5.4.0/activemq-core/apidocs/org/apache/activemq/command/ConnectionInfo.html Maybe the si

Re: Connection ClientId Identifier and AdvisoryMessage.

2011-03-24 Thread Eric-AWL
Hi Gary Thank you. I will follow your advice. I looked into IdGenerator.java source I imagine that I should retreive "ID:myProject.-one port number-timestamp-instanceCount:sequence" Since "ConnectionInfo" usage is not documented at all on the website, can I use ConnectionInfo.getClientId() an