How to view username associated with connection to ActiveMQ

2011-04-29 Thread dougneuhauser
I am running ActiveMQ 5.4.2 with JAAS user authentication using the ActiveMQ supplied JAAS module. Using the web console (connecting to port 8161) or using jconsole, I can see what connections are currently made to the ActiveMQ broker, but I cannot appear to find out what username each connec

Re: Scaleability problems with queue subscriptors

2011-04-29 Thread Gary Tully
setting up a consumer is a little expensive, have a look at using a composite destination so that you can subscribe to all destinations at once. Also, there is a delay between new consumer registration and async dispatch, so waiting a few seconds before unsubscribe is necessary. http://activemq.ap

RE: Possible Memory Leak when JMX agent enabled

2011-04-29 Thread Mike L .
DOH! I meant to post this to the Camel forum. Sorry. To: users@activemq.apache.org Subject: Possible Memory Leak when JMX agent enabled Date: Fri, 29 Apr 2011 17:06:26 -0500 All: Our production servers are experiencing a fairly severe memory leak - it takes about 12 days to get the dre

Possible Memory Leak when JMX agent enabled

2011-04-29 Thread Mike L .
All: Our production servers are experiencing a fairly severe memory leak - it takes about 12 days to get the dreaded OutOfMemoryExceptions. We use linux (CentOS 5.x) Sun 1.6.0_22 JDK Camel 2.4.0 ActiveMQ 5.3.1 JBoss 4.2.1.GA (I know! It's old.) I've attached two screenprints from the Eclipse Me

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread mruan
Thanks Aleksandar! Tim suggested similar solution yesterday, and I tried ... I'll try again. Now I hope that you guys understand what I want, and do you still think that nobody needs to do like this? The new suggestions of Tim seem OK to me as well, though they are new for me, I'll try them as well

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread Aleksandar Ivanisevic
mruan writes: > What I want is to modify some code (e.g. built-in checks) in the function > f() so that when the second case happens, the function will NOT create the > wrong queue. > > I hope that I am now clear to you. You will have to precreate the destinations (http://activemq.apache.org/con

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread Timothy Bish
On Fri, 2011-04-29 at 07:42 -0700, mruan wrote: > Something like this: > > f(string &queuename, string &text) > { > ... > if (queueName Existing) // is it possible to check if a queue exists in > the session??? >destination = session->createQueue( queueName ); > else > // queue do

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread mruan
Something like this: f(string &queuename, string &text) { ... if (queueName Existing) // is it possible to check if a queue exists in the session??? destination = session->createQueue( queueName ); else // queue does not exist, something wrong return; producer = session

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread mruan
"So are you asking why you have to call 'createQueue' on the client side?" --> YES! "If I understand what you asking then calling the createQueue doesn't create a new one if there's already on there that matches the name you've given it, it just create the local representation of the queue object

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread Timothy Bish
On Fri, 2011-04-29 at 06:40 -0700, mruan wrote: > Then it's will be very strange indeed that nobody needs to do what I am > supposed to do. Why do we have to create a queue in order to send a message > even if the queue exists already? > > I study the faq's carefully which Tim told me to do, but I

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread mruan
Then it's will be very strange indeed that nobody needs to do what I am supposed to do. Why do we have to create a queue in order to send a message even if the queue exists already? I study the faq's carefully which Tim told me to do, but I am sorry that I still don't find the solution. Put the pr

[ANNOUNCE] ActiveMQ-CPP Version 3.4.0 Released

2011-04-29 Thread Timothy Bish
Hi Everyone, Its official, AcitveMQ-CPP v3.4.0 has now been released. This is a major release of the ActiveMQ-CPP client which includes some API changes and several improvements over the 3.3.0 release. Some additional methods have been added to the CMS API to make it easier to use, see the API

Re: How to send a textMessage to an exising queue (destination)

2011-04-29 Thread Oscar Pernas
Hi Ming, I think that nobody needs to do something like this because, guessing about your problem, you could be trying to dont allow to send messages to a queue/topic, if you have no consumer of the same one? (the consumer creates the queue/topic). is it? (if I'm wrong sorry) One of the features