PubSub is important for the us to implement the failover mechanism. Although there could have multiple service listen to request, we can still make sure there is only one response can send it back by using the mast-salver mode.
Back to the question, as CXF are now leverage the spring template and listener container to send and receive the message, we don't need to care much about the if the destination is topic or the queue. So we can still implement the Request-Response MEP with JMS using PubSub. -- 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 9:58 AM, Freeman Fang wrote: > Hi Glen, > > That's intended, jms topic can't work with request-response pattern, as topic > could get received by multiple subscribers. Considering this scenario, one > client send request to the topic, and multiple server subscribe this topic, > so multiple server can get request and then response, so the client would be > confused as it get multiple response, it's against the one request<===> one > response pattern, that's why jms topic transport can only work with oneway. > > Freeman > ------------- > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: http://weibo.com/u/1473905042 > > On 2012-10-22, at 上午6:51, 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) >
