Hi Glen, When you use JMS, you can send the message to a queue or a topic. For the queue which is one to one, to the pub sub is one to many. You can implement the Request/Response MEP with both mechanism.
But if you use pub/sub, you can send the one client request to many different server easily. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Monday, October 22, 2012 at 6:51 AM, Glen Mazza wrote: > Hi, we have two closely similar JMS examples in the CXF distribution: > jms_queue and jms_pubsub, representing the two destination styles > available. However the latter example provides only the one-way message > exchange pattern (operation "greetMeOneWay"[1]), while the queue example > provides both the one-way and request-response MEPs. Why is that? Is > it because that pubsub will not work with request-response MEPs, or it's > just that the the pubsub example wasn't filled out enough (it can easily > support it, it's just that this sample doesn't show it.) > > Thanks, > Glen > > [1] > http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl?revision=1181611&view=markup > [2] > http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl?revision=1181611&view=markup > > -- > Glen Mazza > Talend Community Coders - coders.talend.com (http://coders.talend.com) > blog: www.jroller.com/gmazza (http://www.jroller.com/gmazza)
