Hi ,
In Pub-Sub model if once my consumers get consumed the message and
request message went to
out side application. At that time my application some how if it is down
(not working) then i don't wont to loose my message.
1) First of all i want to save my message.
2) And tell how actually Durable Subscriber will be helping in this
context.
Sandeep.
gnodet wrote:
>
> 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/
>
>
--
View this message in context:
http://www.nabble.com/Need-help-regarding-pub-sub-model-tp17106071p17616014.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.