Reddy, I need to publish and consume messages using SOAP clients or in more generally using web services, it makes sense to use the WS-Notification engine instead of plain JMS. Note that the WS-N component uses JMS underneath, so it's really just a wrapper on top of JMS implementing the WS-Notication specification. If your producers and consumers do not have any constraints on the protocol used, I think it will be easier to just use JMS as you will have access to much more features in addition to just WS-Notification.
2008/5/16 谢文渊 <[EMAIL PROTECTED]>: > Hi, reddy > I am going to implement Pub-Sub model for my case. > Now, the two is implemented: jms and wsn. > But I can't know which is better. Hope you can intercommunion with me > thx > > -----邮件原件----- > 发件人: Guillaume Nodet [mailto:[EMAIL PROTECTED] > 发送时间: 2008年5月15日 23:53 > 收件人: [email protected] > 主题: [BULK] Re: Need help regarding pub-sub model > 重要性: 低 > > That's the way to do it. > > On Thu, May 15, 2008 at 5:27 PM, sandeep reddy <[EMAIL PROTECTED]> wrote: >> >> >> Hi nodet, >> >> Thanks for giving back response. >> Since i want to implement Pub-Sub model for my case finally i went with >> servicemix-jms component. >> I created publisher and consumers and its every thing is working. >> >> So, just i want to make sure whether the process is valid and fine. >> I am sending my xbean.xml file jms component. >> >> xbean.xml >> ------------------------------- >> <jms:endpoint service="test:MyService" >> endpoint="myProvider" >> role="provider" >> destinationStyle="topic" >> jmsProviderDestinationName="myTopic" >> connectionFactory="#connectionFactory"/> >> >> <jms:endpoint service="test:MyService" >> endpoint="myConsumer1" >> targetService="test:MyService" >> targetEndpoint="myConsumer1" >> role="consumer" >> destinationStyle="topic" >> jmsProviderDestinationName="myTopic" >> connectionFactory="#connectionFactory"/> >> >> <jms:endpoint service="test:MyService" >> endpoint="myConsumer2" >> targetService="test:MyService" >> targetEndpoint="myConsumer2" >> role="consumer" >> destinationStyle="topic" >> jmsProviderDestinationName="myTopic" >> connectionFactory="#connectionFactory"/> >> >> <amq:connectionFactory id="connectionFactory" >> brokerURL="tcp://localhost:61616" /> >> >> So, using above file i can publish messages to "myTopic" and since >> "myConsumer1" and "myConsumer2" are registered to above >> Topic they are able to get notify and able to gets message. >> >> So , is this is correct way for Pub-Sub or any another better way is there? >> >> Any Help? >> ------------ >> Sandeep. >> >> >> >> gnodet wrote: >>> >>> The service unit for the WSN component is a zip that contains one or >>> more xml files, each one being a valid WSN request. >>> Here are two examples: >>> >>> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/deployables/serviceengines/servicemix-wsn2005/src/test/resources/pullpoint/ >>> >>> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/deployables/serviceengines/servicemix-wsn2005/src/test/resources/subscription/ >>> >>> On Thu, May 8, 2008 at 8:42 AM, sandeep reddy <[EMAIL PROTECTED]> >>> wrote: >>>> >>>> Hi Guillaume Nodet, >>>> >>>> Thanks for reply. >>>> I understood about that JBI Packaging for servicemix-wsn2005 component. >>>> But, these are the areas >>>> still i am bit lagging. >>>> >>>> 1) For every component there is a generalized archetype is there like ( >>>> for creating Http consumer >>>> component there is -DartifactId=servicemix-http-consumer- >>>> service-unit).But >>>> for servicemix-wsn2005 >>>> component there is nothing like that? >>>> >>>> 2) So, please explain how i can create this component. >>>> >>>> 3) what is the structure should be there for Publisher side (which >>>> actually trying for posting messages to a topic at a repeated interval >>>> time >>>> using quartz component). >>>> >>>> 4) what is the structure should be there for Subscriber side (which >>>> gets >>>> notifies the messages from the topics and gets consumes the message). >>>> >>>> If it is possible please explain with sample snippet code. >>>> >>>> Thanks. >>>> >>>> >>>> >>>> >>>> gnodet wrote: >>>> > >>>> > Servicemix WSN component supports SU deployment. >>>> > See >>>> > >>>> http://servicemix.apache.org/servicemix-wsn2005.html#servicemix-wsn2005-ConfigurationusingJBIpackaging >>>> > >>>> > On Wed, May 7, 2008 at 4:16 PM, sandeep reddy <[EMAIL PROTECTED]> >>>> > wrote: >>>> >> >>>> >> Hi All, >>>> >> >>>> >> I am new to servicemix and trying out creating sample >>>> prototypes. >>>> >> As >>>> >> of that i am concentrating trying to achieve pub-sub model. >>>> >> >>>> >> I have gone through the listed examples (ws-notification) and >>>> also >>>> >> servicemix-wsn2005 component and understood. But, this has been done >>>> >> using >>>> >> servicemix.xml files which is of static configuration file. >>>> >> >>>> >> But i would like to achieve same concept using of Service Unit's >>>> >> (SU). >>>> >> >>>> >> What i need to do is: >>>> >> >>>> >> 1) Need to have a Publisher component which actually receives a >>>> >> message >>>> >> and creates at topic and >>>> >> need to put into it. >>>> >> 2) And other side i need to have a list of consumer components >>>> >> (client's) which actually registers to this >>>> >> topic and can get the message. >>>> >> >>>> >> Any help would be greatly appreciated. >>>> >> >>>> >> Thanks, >>>> >> Sandeep. >>>> >> -- >>>> >> View this message in context: >>>> >> >>>> http://www.nabble.com/Need-help-regarding-pub-sub-model-tp17106071p17106071.html >>>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>> >> >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Cheers, >>>> > Guillaume Nodet >>>> > ------------------------ >>>> > Blog: http://gnodet.blogspot.com/ >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Need-help-regarding-pub-sub-model-tp17106071p17120974.html >>>> >>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Need-help-regarding-pub-sub-model-tp17106071p17255913.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
