activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bish, Tim" <Tim.B...@Sensis.com>
Subject RE: Regarding Multiple client in ActiveMQ for openwire-cpp API's
Date Tue, 01 Aug 2006 12:05:08 GMT

> -----Original Message-----
> From: Arshad Ahamad [mailto:arshad@in.effectsoft.com]
> Sent: Tuesday, August 01, 2006 7:55 AM
> To: user@activemq.codehaus.org; activemq-dev@geronimo.apache.org
> Subject: Re: Regarding Multiple client in ActiveMQ for openwire-cpp
API's
> 
> Hi James,
> 
>  I am working on openwire-cpp ( for ActiveMQ-4.0) code on SuSe(Linux
>  machine->i686-suse-linux, version 2.6.13-15.8-default), in C++ .
> 
> >> Is it possible to send & receive over the same queue in ActiveMQ?,
> 
> > Yes
> 
> >>  If yes pls give me the idea about this.
> 
> > You just need to have a producer and consumer on the queue
> 
>  I have a separate sender and receiver and I want to make them
communicate
> bi-directionally. Can this happen on the same single queue?
> Can this all be done using a single queue on each side.
> 

You need to create a Producer and Consumer in both the sender and
receiver that are subscribed to the same queue.  Then you should be
golden.

So in pseudo code you'd have this in both

Queue x("mytopic")
MessageProducer y( x )
MessageConsumer z( x )

It would look like this

for sender to receiver
Sender->senderproduer->receiverconsumer->receiver

for receiver back to send
Receiver->receiverproducer->senderconsumer->sender

Makes Sense?

> 
> >> If not then how will the receiver know on which queue it is going
to
> >> send the reply? (In case of multiple client). Pls help me, my
project
> is
> >>delaying
> 
> > Here's some notes on how to implement request-response...
> 
> > http://incubator.apache.org/activemq/how-should-i-implement-request-
> >resp
> > onse-with-jms.html
> 
>  this notes does not contain more information. If possible pls give me
>  another option for notes
> 
> 
>  Thanks in advance........
> 
> 
>  Thanks & Regards
>  Arashad Ahamad

Mime
View raw message