Re: Request/Response with JMS

2007-04-18 Thread mjparme
Yep, I took another look at the example code shortly after posting that and it suddenly all clicked for me...I am good to go now...thanks! James.Strachan wrote: > > On 4/18/07, mjparme <[EMAIL PROTECTED]> wrote: >> >> Ok, I have another question...hopefully not as dumb as the first one. >> >>

Re: Request/Response with JMS

2007-04-18 Thread mjparme
Ok, I figured out this one too. I just needed to put a little more thought into it! The client is creating a temp queue that _it_ will receive responses on, but all clients will send to a well-known queue that the server has set up, each message will have the temp queue in the JMSReplyTo() that t

Re: Request/Response with JMS

2007-04-18 Thread James Strachan
On 4/18/07, mjparme <[EMAIL PROTECTED]> wrote: Ok, I have another question...hopefully not as dumb as the first one. If the client creates the temporary queue how does the server know what queue to create a MessageConsumer on? The client creates the temporary queue & consumes messages from it

Re: Request/Response with JMS

2007-04-18 Thread mjparme
Ok, I have another question...hopefully not as dumb as the first one. If the client creates the temporary queue how does the server know what queue to create a MessageConsumer on? Or does this pattern assume that the server knows about all of its clients at startup? Eventually the server needs to

Re: Request/Response with JMS

2007-04-18 Thread mjparme
Ok, found my own answer. You just pass "null" as the Desintation: replyProducer = session.createProducer(null); Duh! Oh well, can't be smart all the time:-) mjparme wrote: > > This may be more of a general JMS question rather than Active MQ, but > hopefully people will help me out anyway. I

Re: Request/Response with JMS

2007-04-18 Thread James Strachan
On 4/18/07, mjparme <[EMAIL PROTECTED]> wrote: This may be more of a general JMS question rather than Active MQ, but hopefully people will help me out anyway. I read this doc: http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html Seems easy enough except how do I cre