You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jim Alateras <ji...@comware.com.au> on 2007/06/14 06:20:04 UTC
QueueSender question
If I create a QueueSender
QueueSender pub = session.createSender(new ActiveMQQueue("queue1"));
I can't seem to use it to publish to another queue.
pub.send(new ActiveMQQueue("queue2"), message);
when this executes i get the following exception
aused by: java.lang.UnsupportedOperationException: This producer can
only send messages to: queue1
Is there any way i can use a single publisher to send messages to
multiple queues.
cheers
</jima>
Re: Retrieving stats for a particular queue
Posted by Jim Alateras <ji...@comware.com.au>.
James Strachan wrote:
> On 6/14/07, Jim Alateras <ji...@comware.com.au> 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?
thxs. is there info on how to go about doing this ?
cheers
</jima>
Re: Retrieving stats for a particular queue
Posted by James Strachan <ja...@gmail.com>.
On 6/14/07, Jim Alateras <ji...@comware.com.au> 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/
EnqueueCounter doesn't seem to be counting correctly.
Posted by Jim Alateras <ji...@comware.com.au>.
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
</jima>
Retrieving stats for a particular queue
Posted by Jim Alateras <ji...@comware.com.au>.
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
</jima>
Re: QueueSender question
Posted by Adrian Co <ac...@exist.com>.
Create an anonymous sender by specifying a null destination in the
createSender method and specify the actual destination in each send.
Jim Alateras wrote:
> If I create a QueueSender
>
> QueueSender pub = session.createSender(new ActiveMQQueue("queue1"));
>
> I can't seem to use it to publish to another queue.
>
> pub.send(new ActiveMQQueue("queue2"), message);
>
> when this executes i get the following exception
>
> aused by: java.lang.UnsupportedOperationException: This producer can
> only send messages to: queue1
>
>
> Is there any way i can use a single publisher to send messages to
> multiple queues.
>
> cheers
> </jima>
>
>
>