Re: Retrieving stats for a particular queue

2007-06-14 Thread James Strachan
On 6/14/07, Jim Alateras <[EMAIL PROTECTED]> wrote: Hi, I can get the TotalXXXCounts statistics from the BrokerView but was wondering how I can retrieve the same stats for a particular queue. Just grab the MBeans from JMX? -- James --- http://macstrac.blogspot.com/

Re: ClassCastException w/ tomcat & JND

2007-06-14 Thread James Strachan
Sounds like you've multiple jms API jars causing the ClassCastException (ActiveMQConnectionFactory definitely is-a ConnectionFactory :) On 6/15/07, Rob Terpilowski <[EMAIL PROTECTED]> wrote: Hello active mq users , I am running into the following issue that was posted on the mailing list in Jan

ClassCastException w/ tomcat & JNDI

2007-06-14 Thread Rob Terpilowski
Hello active mq users , I am running into the following issue that was posted on the mailing list in January, but for which no response was posted. I have the following configuration on my system tomcat 5.5 java 1.5.09 activemq jars version 4.1.1 The active MQ broker is started , from the

EnqueueCounter doesn't seem to be counting correctly.

2007-06-14 Thread Jim Alateras
The TotalEnqueueCounter, in BrokerView class seems to be incrementing even when I don't send messages to the broker. Has anyone else experienced this. The dequeue and queued counters seem to be operating as expected. cheers

Re: Getting the size of a Queue

2007-06-14 Thread Jim Alateras
Marco, I am running an embedded broker and I use org.apache.activemq.brokerBrokerServer.getAdminView() to get access to the counters (enqueue, dequeue and queued count). These counters are at the broker level not the queue level though. hope this helps. cheers MarcoB70 wrote: I would like

Retrieving stats for a particular queue

2007-06-14 Thread Jim Alateras
Hi, I can get the TotalXXXCounts statistics from the BrokerView but was wondering how I can retrieve the same stats for a particular queue. cheers

Re: QueueBrowser with Network of Brokers

2007-06-14 Thread AlB
I have a network of 3 brokers using 4.0.1 where the maximum hop is 1 (a star configuration, a-b-c, where messages travel from a to b or b to c via the same queue.) Messages are not transacted by either the publishers or the consumer. I see this error frequently. Sometimes the error will happen at

network of broker does not work properly where there are more than 1 message producer

2007-06-14 Thread hh_meta
I tried to configure a network of broker for distributed queue within Spring 2.0. So I have 4 brokers in total: Broker1 and Broker2, both have a message producer on them; Broker3 and Broker4, both have a message consumer on them. The idea is message produced from either Broker1 and Broker2 will

Re: MapMessage.getInt

2007-06-14 Thread Gaurav Hariani
If you are retrieving primitive types - you could check using boolean itemExists(String name) http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/command/ActiveMQMapMessage.html#itemExists(java.lang.String) also from the spec api: http://java.sun.com/j2ee/1.4/docs/api/

Getting the size of a Queue

2007-06-14 Thread MarcoB70
I would like to access programmatically the size of a Queue without making use of a QueueBrowser and scanning the elements it returns. In the FAQ will a JMX approach recommendend (see http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html), but I would rather follow another way. Other J

Client hungs trying to create/delete a temporary queue

2007-06-14 Thread Manuel Teira
Hello. I'm suffering a non deterministic problem when activemq tries to create/delete temporary queues from a servlet service method. Basically, the servlet service method executes a method that: 1.-Creates a session on a shared connection. 2.-Creates a temporary queue on the session, a consu

Failed to start jmx connector

2007-06-14 Thread thiamteck
I had installed ActiveMQ 4.1 on server with JDK 1.4.2 update 12. ActiveMQ can start and running, however, it failed to start JMX. Below is the logs: == 2007-06-14 12:32:26,609 [main ] INFO BrokerService - ActiveMQ Message B

Re: Failover - Problems

2007-06-14 Thread James Strachan
On 6/14/07, MarkusJ <[EMAIL PROTECTED]> wrote: Hello, we use two servers. All the clients that want to receive messages are connected to both servers. The senders sends the message two one server at time. We use the failover transport for all clients: failover:tcp://TheHost:61616 If we start

Failover - Problems

2007-06-14 Thread MarkusJ
Hello, we use two servers. All the clients that want to receive messages are connected to both servers. The senders sends the message two one server at time. We use the failover transport for all clients: failover:tcp://TheHost:61616 If we start the clients and both servers are online everythi