activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Multiple listeners of single queue message in the same session
Date Sat, 17 Nov 2007 10:08:58 GMT
On 16/11/2007, Robert Ginda <rginda@gmail.com> wrote:
> I'm ok with starting and stopping consumers when the selector changes.
>  Can you elaborate on what you mean by binding the consumers to the
> POJOs?

In camel you can write POJOs like this...

public class MyService {

  @MessageDriven(uri="activemq:MyCheeseQueue")
  public Confirmation placeOrder(Order order) {
     ...
  }
}

and it will automatically bind the MyService.placeOrder() method to
messages coming in from MyCheeseQeue - and in this case, send a reply
to the JMSReplyTo destination.

i.e. avoiding you have to write any middleware code.

For more detail see...
http://activemq.apache.org/camel/bean-integration.html

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message