Re: Problem reading a Queue

2013-08-09 Thread Christian Posta
Post your config and your code. I you have a test case, even better. On Friday, August 9, 2013, rafiki wrote: > Yes, it works with Auto Acknowledge, but I can't lose data, so I need a > transacted session. > > I tryed with useCache="false" but I obtain the same result. > > I used my program with

Re: Activemq webconsole for multiple brocker

2013-08-09 Thread Christian Posta
Yep, that's where I got. On Friday, August 9, 2013, Chirag Pujara wrote: > I think i figured out what was wrong with my inital setup. I had commented > out import for jetty.xml in activemq xml bcs I didnt wanted to start > webconsole. But I guess I have to keep it if I want jolokia feature. > > I

Re: Activemq webconsole for multiple brocker

2013-08-09 Thread Chirag Pujara
I think i figured out what was wrong with my inital setup. I had commented out import for jetty.xml in activemq xml bcs I didnt wanted to start webconsole. But I guess I have to keep it if I want jolokia feature. In hawtio I used following config in Connect tab: hostname: localhost port: 8161 pat

Re: Problem reading a Queue

2013-08-09 Thread rafiki
Yes, it works with Auto Acknowledge, but I can't lose data, so I need a transacted session. I tryed with useCache="false" but I obtain the same result. I used my program with a commercial JMS provider (IBM WMQ) and it works. I don't know if this is a limitation of ActiveMQ, a bad configuration o

Re: Activemq webconsole for multiple brocker

2013-08-09 Thread Christian Posta
Jolokia is started by default. Check out last section on this wiki: http://activemq.apache.org/rest.html You should be able to hit the rest management api (through jolokia) at http://localhost:8161/api/jolokia As for connecting to hawtio, there is a "Connect" tab that you should be able to use t

Re: Stop and resume message consuming

2013-08-09 Thread Christian Posta
Do you have a test case? I can look at your test case and see exactly what's going on. On Wed, Aug 7, 2013 at 2:27 AM, retok wrote: > Thanks for your reply. I have tried to set prefetch to 0. But this does not > work for async sessions. I have to set it to a minimum of 1 because I would > like

Re: Problem reading a Queue

2013-08-09 Thread Christian Posta
It works with selectors and Auto Acknowledge? What happens if you disable the cache with http://activemq.apache.org/per-destination-policies.html On Fri, Aug 9, 2013 at 6:28 AM, rafiki wrote: > I have a queue with a big size (more than one hundred thousand messages). > I > try to read the me

Re: block on threshold

2013-08-09 Thread Christian Posta
Producer Flow Control is implemented based on message size limits, not message counts. So you could calculate an approximate message size from the expected number of messages you wish to have as a backlog, and set the configurations like that. So if you have 10,000 1K messages, you can set your qu

Re: Activemq webconsole for multiple brocker

2013-08-09 Thread Chirag Pujara
thanks. I read your blog. But I am running hawtio on tomcat. I want to monitor remote instance of activemq using hawtio. So i though of stating jolokia with activemq assuming its not running. But i think java doesnt support that or I dont know whats going on. here is what I was doing: /opt/gwx/a

block on threshold

2013-08-09 Thread Jamie
Hi All Greetings! Does anyone have any idea on how to implement producer blocking in ActiveMQ when the no. of queued messages gets to a certain threshold? I've read about Active MQ's flow control feature, but I am still confused on how one would accomplish this. In short, when the number of m

Problem reading a Queue

2013-08-09 Thread rafiki
I have a queue with a big size (more than one hundred thousand messages). I try to read the messages using persistence, session transacted and CorrelID message selector using JMS interface. When I read a message from first positions, it works fine, but if the message is in the last positions, the