You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by garima015 <ga...@rediffmail.com> on 2006/12/08 22:23:17 UTC

Multiple Producers sharing single queue

I need an urgent help
I have many producers running on different thread need to share the same
request queue.I am not getting how to implement this.
I try to get some resolutions from FAQ's but was not able to understand the
JNDIutil purpose fully also not sure whethar it will be useful in this case
or not
Any help will be really appreciated
-- 
View this message in context: http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7765511
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Multiple Producers sharing single queue

Posted by Fritz Oconer <fo...@exist.com>.
Hi Garima,

Can you please provide more details on the scenario ? As far as I know, Each 
producers can simply publish on the same queue destination and have the 
consumer/s subscribe to the destination to receive the messages.

Regards,
Fritz

----- Original Message ----- 
From: "garima015" <ga...@rediffmail.com>
To: <ac...@geronimo.apache.org>
Sent: Saturday, December 09, 2006 6:17 AM
Subject: Re: Multiple Producers sharing single queue


>
> no i am using multiple producers also sharing the same request queue.
> Is there any method to get the existing queue?
> Thanks
>
> amq user wrote:
>>
>> I assume you are running many CONSUMERs to share a same request queue.
>> Then you should use topic instead of queue. All CONSUMER subscribed to
>> that topic will get the message.
>>
>> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>>>
>>>
>>> I need an urgent help
>>> I have many producers running on different thread need to share the same
>>> request queue.I am not getting how to implement this.
>>> I try to get some resolutions from FAQ's but was not able to understand
>>> the
>>> JNDIutil purpose fully also not sure whethar it will be useful in this
>>> case
>>> or not
>>> Any help will be really appreciated
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7765511
>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7766352
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. 


Re: Multiple Producers sharing single queue

Posted by garima015 <ga...@rediffmail.com>.
Thanks for ur reply.I got my mistake.


James.Strachan wrote:
> 
> Just create a queue in each client as there is really only one queue
> for a given name in a broker. See...
> 
> http://incubator.apache.org/activemq/how-do-i-create-new-destinations.html
> 
> On 12/11/06, garima015 <ga...@rediffmail.com> wrote:
>>
>> No i have my own Requestor class in whih i am creating request queue
>> using
>> method :
>> Destination requestQueue = session.createQueue(requestQueueName);
>>
>> I have multiple clients accessing this requestor class...i want to share
>> the
>> request queue among multiple clients
>> so i want to have some method which can check if request queue is already
>> existing or not in case not should create new one else should take the
>> exitsing queue and create producer for that
>> Is there any method which can implement this
>>
>> Thanks for ur reply
>>
>>
>> rajdavies wrote:
>> >
>> > Do you mean your using the javax.jms.QueueRequestor class ?
>> >
>> >
>> > On 8 Dec 2006, at 22:17, garima015 wrote:
>> >
>> >>
>> >> no i am using multiple producers also sharing the same request queue.
>> >> Is there any method to get the existing queue?
>> >> Thanks
>> >>
>> >> amq user wrote:
>> >>>
>> >>> I assume you are running many CONSUMERs to share a same request
>> >>> queue.
>> >>> Then you should use topic instead of queue. All CONSUMER
>> >>> subscribed to
>> >>> that topic will get the message.
>> >>>
>> >>> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>> >>>>
>> >>>>
>> >>>> I need an urgent help
>> >>>> I have many producers running on different thread need to share
>> >>>> the same
>> >>>> request queue.I am not getting how to implement this.
>> >>>> I try to get some resolutions from FAQ's but was not able to
>> >>>> understand
>> >>>> the
>> >>>> JNDIutil purpose fully also not sure whethar it will be useful in
>> >>>> this
>> >>>> case
>> >>>> or not
>> >>>> Any help will be really appreciated
>> >>>> --
>> >>>> View this message in context:
>> >>>> http://www.nabble.com/Multiple-Producers-sharing-single-queue-
>> >>>> tf2783192.html#a7765511
>> >>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>
>> >> --
>> >> View this message in context: http://www.nabble.com/Multiple-
>> >> Producers-sharing-single-queue-tf2783192.html#a7766352
>> >> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>> >>
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7796124
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7798819
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Multiple Producers sharing single queue

Posted by James Strachan <ja...@gmail.com>.
Just create a queue in each client as there is really only one queue
for a given name in a broker. See...

http://incubator.apache.org/activemq/how-do-i-create-new-destinations.html

On 12/11/06, garima015 <ga...@rediffmail.com> wrote:
>
> No i have my own Requestor class in whih i am creating request queue using
> method :
> Destination requestQueue = session.createQueue(requestQueueName);
>
> I have multiple clients accessing this requestor class...i want to share the
> request queue among multiple clients
> so i want to have some method which can check if request queue is already
> existing or not in case not should create new one else should take the
> exitsing queue and create producer for that
> Is there any method which can implement this
>
> Thanks for ur reply
>
>
> rajdavies wrote:
> >
> > Do you mean your using the javax.jms.QueueRequestor class ?
> >
> >
> > On 8 Dec 2006, at 22:17, garima015 wrote:
> >
> >>
> >> no i am using multiple producers also sharing the same request queue.
> >> Is there any method to get the existing queue?
> >> Thanks
> >>
> >> amq user wrote:
> >>>
> >>> I assume you are running many CONSUMERs to share a same request
> >>> queue.
> >>> Then you should use topic instead of queue. All CONSUMER
> >>> subscribed to
> >>> that topic will get the message.
> >>>
> >>> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
> >>>>
> >>>>
> >>>> I need an urgent help
> >>>> I have many producers running on different thread need to share
> >>>> the same
> >>>> request queue.I am not getting how to implement this.
> >>>> I try to get some resolutions from FAQ's but was not able to
> >>>> understand
> >>>> the
> >>>> JNDIutil purpose fully also not sure whethar it will be useful in
> >>>> this
> >>>> case
> >>>> or not
> >>>> Any help will be really appreciated
> >>>> --
> >>>> View this message in context:
> >>>> http://www.nabble.com/Multiple-Producers-sharing-single-queue-
> >>>> tf2783192.html#a7765511
> >>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context: http://www.nabble.com/Multiple-
> >> Producers-sharing-single-queue-tf2783192.html#a7766352
> >> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7796124
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Multiple Producers sharing single queue

Posted by garima015 <ga...@rediffmail.com>.
No i have my own Requestor class in whih i am creating request queue using
method :
Destination requestQueue = session.createQueue(requestQueueName);

I have multiple clients accessing this requestor class...i want to share the
request queue among multiple clients
so i want to have some method which can check if request queue is already
existing or not in case not should create new one else should take the
exitsing queue and create producer for that
Is there any method which can implement this

Thanks for ur reply


rajdavies wrote:
> 
> Do you mean your using the javax.jms.QueueRequestor class ?
> 
> 
> On 8 Dec 2006, at 22:17, garima015 wrote:
> 
>>
>> no i am using multiple producers also sharing the same request queue.
>> Is there any method to get the existing queue?
>> Thanks
>>
>> amq user wrote:
>>>
>>> I assume you are running many CONSUMERs to share a same request  
>>> queue.
>>> Then you should use topic instead of queue. All CONSUMER  
>>> subscribed to
>>> that topic will get the message.
>>>
>>> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>>>>
>>>>
>>>> I need an urgent help
>>>> I have many producers running on different thread need to share  
>>>> the same
>>>> request queue.I am not getting how to implement this.
>>>> I try to get some resolutions from FAQ's but was not able to  
>>>> understand
>>>> the
>>>> JNDIutil purpose fully also not sure whethar it will be useful in  
>>>> this
>>>> case
>>>> or not
>>>> Any help will be really appreciated
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Multiple-Producers-sharing-single-queue- 
>>>> tf2783192.html#a7765511
>>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/Multiple- 
>> Producers-sharing-single-queue-tf2783192.html#a7766352
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7796124
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Multiple Producers sharing single queue

Posted by Rob Davies <ra...@gmail.com>.
Do you mean your using the javax.jms.QueueRequestor class ?


On 8 Dec 2006, at 22:17, garima015 wrote:

>
> no i am using multiple producers also sharing the same request queue.
> Is there any method to get the existing queue?
> Thanks
>
> amq user wrote:
>>
>> I assume you are running many CONSUMERs to share a same request  
>> queue.
>> Then you should use topic instead of queue. All CONSUMER  
>> subscribed to
>> that topic will get the message.
>>
>> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>>>
>>>
>>> I need an urgent help
>>> I have many producers running on different thread need to share  
>>> the same
>>> request queue.I am not getting how to implement this.
>>> I try to get some resolutions from FAQ's but was not able to  
>>> understand
>>> the
>>> JNDIutil purpose fully also not sure whethar it will be useful in  
>>> this
>>> case
>>> or not
>>> Any help will be really appreciated
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Multiple-Producers-sharing-single-queue- 
>>> tf2783192.html#a7765511
>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Multiple- 
> Producers-sharing-single-queue-tf2783192.html#a7766352
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>


Re: Multiple Producers sharing single queue

Posted by garima015 <ga...@rediffmail.com>.
no i am using multiple producers also sharing the same request queue.
Is there any method to get the existing queue?
Thanks

amq user wrote:
> 
> I assume you are running many CONSUMERs to share a same request queue.
> Then you should use topic instead of queue. All CONSUMER subscribed to
> that topic will get the message.
> 
> On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>>
>>
>> I need an urgent help
>> I have many producers running on different thread need to share the same
>> request queue.I am not getting how to implement this.
>> I try to get some resolutions from FAQ's but was not able to understand
>> the
>> JNDIutil purpose fully also not sure whethar it will be useful in this
>> case
>> or not
>> Any help will be really appreciated
>> --
>> View this message in context:
>> http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7765511
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7766352
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Multiple Producers sharing single queue

Posted by amq user <am...@gmail.com>.
I assume you are running many CONSUMERs to share a same request queue.
Then you should use topic instead of queue. All CONSUMER subscribed to
that topic will get the message.

On 12/8/06, garima015 <ga...@rediffmail.com> wrote:
>
>
> I need an urgent help
> I have many producers running on different thread need to share the same
> request queue.I am not getting how to implement this.
> I try to get some resolutions from FAQ's but was not able to understand
> the
> JNDIutil purpose fully also not sure whethar it will be useful in this
> case
> or not
> Any help will be really appreciated
> --
> View this message in context:
> http://www.nabble.com/Multiple-Producers-sharing-single-queue-tf2783192.html#a7765511
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
>