producer flow control questions

2012-01-26 Thread Oscar Pernas
Hi all, Im trying to optimize and hardening activemq and I have some question: - If I set producerFlowControl to false, should I need to set the memory limit? I dont know if I set the memory limit, firstly all messages goes to memory until is full, and after that goes to disk? - Do I need to set

Re: Does a persistent message stay (keep) on the broker forever ?

2012-01-26 Thread ceposta
Abimael, Just to follow up on what Matt said, the messages in the log files will only be deleted once they're *all* consumed. If you have a log file where all but one message is consumed, the log file will stay around until the last message is consumed. Thanks, Christian - http://www.christ

Re: Regarding Bug 3668

2012-01-26 Thread Matt Pavlovich
Soumya- The error appears to be that the ActiveMQ connection was closed. If you are using connection pools, you might look into your configuration there and see if you set some timeouts. Its been a while since 4.x, so I can't remember off the top of my head how the default behavior works.

Re: Does a persistent message stay (keep) on the broker forever ?

2012-01-26 Thread Matt Pavlovich
Glad to hear. Yes, the "store" limits the disk space that the broker will use. Once that limit is reached, the broker will kick in "producer flow control", where it will not ack messages to producers. This allows the consumer to "catch up" and drain the queues. You shouldn't have to tweak t

Regarding Bug 3668

2012-01-26 Thread Soumya Kanti Chakraborty
Hi We are using AMQ4.0.1 and JBoss 4.0 in a application and are getting the following error as given in the below link http://pastebin.com/NBuSqTZT As AMQ4.0.1 has reached the EOL so I was redirected to the mailing lists. >From my POV it looks like a bug, but can anyone confirm me in which versi

Re: ACTIVEMQ_LOCK.BROKER_NAME Is Always NULL

2012-01-26 Thread mikmela
Does anyone know if this issue with BROKER_NAME in ACTIVEMQ_LOCK table has ever been resolved? It seems that for some reason it was decided that broker cluster (i.e. group of 1 master and N slaves) must have a dedicated database instance?! Using BROKER_NAME (which, actually, should be a broker cl

Re: Does a persistent message stay (keep) on the broker forever ?

2012-01-26 Thread Abimael
@Matt Pavlovich-2 Thank you. Yes, while I was waiting for the response, I did a test with more than 50 messages with the Consumer application STOPPED. I noticed that there was db-XX.log files (several of them) . Once I started Consumer, all of them were deleted , and just one were kept

Retriving Statistics from MapMessage using ActiveMQ-CPP

2012-01-26 Thread Bill Moo
What method of the cms::MapMessage do I use to extract the values from a ActiveMQ.Statistics.Broker query? I'm getting a reply and I can output a list of map names but no values! Using this code : const cms::MapMessage * map = dynamic_cast < const cms::MapMessage * >(message) ; const std::vector

Re: how to enable persistent message store?

2012-01-26 Thread Gary Tully
persistence is an attribute of each message, how are you sending the messages? And you need to be sending to a queue or use durable subscriptions on a topic. have a go with the examples, ant consumer, and producer to get started. On 26 January 2012 12:11, alexandry wrote: > Hi, i trying to figur

java.lang.OutOfMemoryError when importing a camel.xml resource.

2012-01-26 Thread Bill Moo
Hello. I have a working activemq.xml file that work until I import my camel.xml resource. When activemq is started using the console option it tells me : # A fatal error has been detected by the Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 65552 bytes for Chunk::new. Out of

how to enable persistent message store?

2012-01-26 Thread alexandry
Hi, i trying to figure out how to enable persistent storage at ActiveMQ. My configuration say http://activemq.apache.org/schema/core"; brokerName="firstbroker" dataDirectory="${activemq.base}/data" persistent="true"> that it should be persistent. But in following scenario it not seems to be pers

Memory Issue with JMS Streams

2012-01-26 Thread hschoeneberg
Hey everyone, I am currently developing a message-driven client-server-application that involves sending around large files (1gb each). As I can not rely on external transfer-services I am resorting to JMS Streams. After receiving a certain amount of data the broker slows down and seems to have pr