You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by beppe82 <gi...@gmail.com> on 2007/07/04 15:22:50 UTC

How to use Static Routing Slip

Hi, this is what I want to do:

I have a XML document which contains different tags; the content of the tags
is used to call 7 stored procedure, which must be called sequentially. To
have a flexible infrastructure, which permits to add further tags to call
further stored procedures in the future, I decided to have a routing based
on configuration. I noticed that servicemix has a static-routing-slip
service which I can use to define my business process. I would like to
configure: as FIRST thing the message will be sent to SE1, THEN SE1 send it
to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
I think I must create a list of the endpoints that take part to my business
process, like:

<eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
  <eip:targets>
    <eip:exchange-target service="test:se1" />
    <eip:exchange-target service="test:se2" />
                            ...
  </eip:targets>
</eip:static-routing-slip>

But how do I use this list?
Thanks and sorry for my English.
Giuseppe


-- 
View this message in context: http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11430865
Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: How to use Static Routing Slip

Posted by beppe82 <gi...@gmail.com>.
Thanks, so do I think so, but I would like to have a confirm... now I'm going
to do some test. Thank you very much for the moment! Giuseppe


rabi wrote:
> 
> 
> As per my understandin RoutingSlip eip pattern routes an incoming In-Out
> exchange through a series of target services. So it will be done by
> default, out  of test:se1  is in for test:se2.
> ________________________________
> 
> From: beppe82 [mailto:giuseppevitalone@gmail.com]
> Sent: Thu 7/5/2007 2:18 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to use Static Routing Slip
> 
> 
> 
> But what happen when test:se1 has received the message and it want to
> route
> it to test:se2? What should it do?
> Thanks
> 
> 
> Adrian Co wrote:
>>
>> Hi,
>>
>> When you create and deploy the static routing slip endpoint below, it
>> essentially becomes a JBI service inside the bus.
>>
>> So you can create an HTTP consumer for example and point the consumer to
>> the "test:routing-slip" service. Any http request that is directed at
>> the url being proxied by the http consumer will be routed to the routing
>> slip service, which will route it to test:se1, etc...
>>
>> Hope that helps.
>>
>> beppe82 wrote:
>>> Hi, this is what I want to do:
>>>
>>> I have a XML document which contains different tags; the content of the
>>> tags
>>> is used to call 7 stored procedure, which must be called sequentially.
>>> To
>>> have a flexible infrastructure, which permits to add further tags to
>>> call
>>> further stored procedures in the future, I decided to have a routing
>>> based
>>> on configuration. I noticed that servicemix has a static-routing-slip
>>> service which I can use to define my business process. I would like to
>>> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send
>>> it
>>> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
>>> I think I must create a list of the endpoints that take part to my
>>> business
>>> process, like:
>>>
>>> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>>>   <eip:targets>
>>>     <eip:exchange-target service="test:se1" />
>>>     <eip:exchange-target service="test:se2" />
>>>                             ...
>>>   </eip:targets>
>>> </eip:static-routing-slip>
>>>
>>> But how do I use this list?
>>> Thanks and sorry for my English.
>>> Giuseppe
>>>
>>>
>>>  
>>
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11442933
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11443362
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: How to use Static Routing Slip

Posted by Gert Vanthienen <ge...@skynet.be>.
Guiseppe,

The RoutingSlip receives an InOut message exchange.  The RoutingSlip 
will perform the flow described by Rabi Mishra and the last out message 
is sent back in the original exchange that went into the routing slip.

Gert


beppe82 wrote:
> What about the last out message? Which is the target service?
> Thanks
>
>
> rabi wrote:
>   
>> As per my understandin RoutingSlip eip pattern routes an incoming In-Out
>> exchange through a series of target services. So it will be done by
>> default, out  of test:se1  is in for test:se2.
>> ________________________________
>>
>> From: beppe82 [mailto:giuseppevitalone@gmail.com]
>> Sent: Thu 7/5/2007 2:18 PM
>> To: servicemix-users@geronimo.apache.org
>> Subject: Re: How to use Static Routing Slip
>>
>>
>>
>> But what happen when test:se1 has received the message and it want to
>> route
>> it to test:se2? What should it do?
>> Thanks
>>
>>
>> Adrian Co wrote:
>>     
>>> Hi,
>>>
>>> When you create and deploy the static routing slip endpoint below, it
>>> essentially becomes a JBI service inside the bus.
>>>
>>> So you can create an HTTP consumer for example and point the consumer to
>>> the "test:routing-slip" service. Any http request that is directed at
>>> the url being proxied by the http consumer will be routed to the routing
>>> slip service, which will route it to test:se1, etc...
>>>
>>> Hope that helps.
>>>
>>> beppe82 wrote:
>>>       
>>>> Hi, this is what I want to do:
>>>>
>>>> I have a XML document which contains different tags; the content of the
>>>> tags
>>>> is used to call 7 stored procedure, which must be called sequentially.
>>>> To
>>>> have a flexible infrastructure, which permits to add further tags to
>>>> call
>>>> further stored procedures in the future, I decided to have a routing
>>>> based
>>>> on configuration. I noticed that servicemix has a static-routing-slip
>>>> service which I can use to define my business process. I would like to
>>>> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send
>>>> it
>>>> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
>>>> I think I must create a list of the endpoints that take part to my
>>>> business
>>>> process, like:
>>>>
>>>> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>>>>   <eip:targets>
>>>>     <eip:exchange-target service="test:se1" />
>>>>     <eip:exchange-target service="test:se2" />
>>>>                             ...
>>>>   </eip:targets>
>>>> </eip:static-routing-slip>
>>>>
>>>> But how do I use this list?
>>>> Thanks and sorry for my English.
>>>> Giuseppe
>>>>
>>>>
>>>>  
>>>>         
>>>
>>>       
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11442933
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>
>>
>>
>>
>> The information contained in this electronic message and any attachments
>> to this message are intended for the exclusive use of the addressee(s) and
>> may contain proprietary, confidential or privileged information. If you
>> are not the intended recipient, you should not disseminate, distribute or
>> copy this e-mail. Please notify the sender immediately and destroy all
>> copies of this message and any attachments. 
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>  
>> www.wipro.com
>>
>>     
>
>   

RE: How to use Static Routing Slip

Posted by beppe82 <gi...@gmail.com>.
What about the last out message? Which is the target service?
Thanks


rabi wrote:
> 
> 
> As per my understandin RoutingSlip eip pattern routes an incoming In-Out
> exchange through a series of target services. So it will be done by
> default, out  of test:se1  is in for test:se2.
> ________________________________
> 
> From: beppe82 [mailto:giuseppevitalone@gmail.com]
> Sent: Thu 7/5/2007 2:18 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to use Static Routing Slip
> 
> 
> 
> But what happen when test:se1 has received the message and it want to
> route
> it to test:se2? What should it do?
> Thanks
> 
> 
> Adrian Co wrote:
>>
>> Hi,
>>
>> When you create and deploy the static routing slip endpoint below, it
>> essentially becomes a JBI service inside the bus.
>>
>> So you can create an HTTP consumer for example and point the consumer to
>> the "test:routing-slip" service. Any http request that is directed at
>> the url being proxied by the http consumer will be routed to the routing
>> slip service, which will route it to test:se1, etc...
>>
>> Hope that helps.
>>
>> beppe82 wrote:
>>> Hi, this is what I want to do:
>>>
>>> I have a XML document which contains different tags; the content of the
>>> tags
>>> is used to call 7 stored procedure, which must be called sequentially.
>>> To
>>> have a flexible infrastructure, which permits to add further tags to
>>> call
>>> further stored procedures in the future, I decided to have a routing
>>> based
>>> on configuration. I noticed that servicemix has a static-routing-slip
>>> service which I can use to define my business process. I would like to
>>> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send
>>> it
>>> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
>>> I think I must create a list of the endpoints that take part to my
>>> business
>>> process, like:
>>>
>>> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>>>   <eip:targets>
>>>     <eip:exchange-target service="test:se1" />
>>>     <eip:exchange-target service="test:se2" />
>>>                             ...
>>>   </eip:targets>
>>> </eip:static-routing-slip>
>>>
>>> But how do I use this list?
>>> Thanks and sorry for my English.
>>> Giuseppe
>>>
>>>
>>>  
>>
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11442933
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11464486
Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: How to use Static Routing Slip

Posted by ra...@wipro.com.
As per my understandin RoutingSlip eip pattern routes an incoming In-Out exchange through a series of target services. So it will be done by default, out  of test:se1  is in for test:se2.
________________________________

From: beppe82 [mailto:giuseppevitalone@gmail.com]
Sent: Thu 7/5/2007 2:18 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: How to use Static Routing Slip



But what happen when test:se1 has received the message and it want to route
it to test:se2? What should it do?
Thanks


Adrian Co wrote:
>
> Hi,
>
> When you create and deploy the static routing slip endpoint below, it
> essentially becomes a JBI service inside the bus.
>
> So you can create an HTTP consumer for example and point the consumer to
> the "test:routing-slip" service. Any http request that is directed at
> the url being proxied by the http consumer will be routed to the routing
> slip service, which will route it to test:se1, etc...
>
> Hope that helps.
>
> beppe82 wrote:
>> Hi, this is what I want to do:
>>
>> I have a XML document which contains different tags; the content of the
>> tags
>> is used to call 7 stored procedure, which must be called sequentially. To
>> have a flexible infrastructure, which permits to add further tags to call
>> further stored procedures in the future, I decided to have a routing
>> based
>> on configuration. I noticed that servicemix has a static-routing-slip
>> service which I can use to define my business process. I would like to
>> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send
>> it
>> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
>> I think I must create a list of the endpoints that take part to my
>> business
>> process, like:
>>
>> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>>   <eip:targets>
>>     <eip:exchange-target service="test:se1" />
>>     <eip:exchange-target service="test:se2" />
>>                             ...
>>   </eip:targets>
>> </eip:static-routing-slip>
>>
>> But how do I use this list?
>> Thanks and sorry for my English.
>> Giuseppe
>>
>>
>>  
>
>
>

--
View this message in context: http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11442933
Sent from the ServiceMix - User mailing list archive at Nabble.com.






The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

Re: How to use Static Routing Slip

Posted by beppe82 <gi...@gmail.com>.
But what happen when test:se1 has received the message and it want to route
it to test:se2? What should it do?
Thanks


Adrian Co wrote:
> 
> Hi,
> 
> When you create and deploy the static routing slip endpoint below, it 
> essentially becomes a JBI service inside the bus.
> 
> So you can create an HTTP consumer for example and point the consumer to 
> the "test:routing-slip" service. Any http request that is directed at 
> the url being proxied by the http consumer will be routed to the routing 
> slip service, which will route it to test:se1, etc...
> 
> Hope that helps.
> 
> beppe82 wrote:
>> Hi, this is what I want to do:
>>
>> I have a XML document which contains different tags; the content of the
>> tags
>> is used to call 7 stored procedure, which must be called sequentially. To
>> have a flexible infrastructure, which permits to add further tags to call
>> further stored procedures in the future, I decided to have a routing
>> based
>> on configuration. I noticed that servicemix has a static-routing-slip
>> service which I can use to define my business process. I would like to
>> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send
>> it
>> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
>> I think I must create a list of the endpoints that take part to my
>> business
>> process, like:
>>
>> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>>   <eip:targets>
>>     <eip:exchange-target service="test:se1" />
>>     <eip:exchange-target service="test:se2" />
>>                             ...
>>   </eip:targets>
>> </eip:static-routing-slip>
>>
>> But how do I use this list?
>> Thanks and sorry for my English.
>> Giuseppe
>>
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-Static-Routing-Slip-tf4024407s12049.html#a11442933
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: How to use Static Routing Slip

Posted by Adrian Co <ac...@exist.com>.
Hi,

When you create and deploy the static routing slip endpoint below, it 
essentially becomes a JBI service inside the bus.

So you can create an HTTP consumer for example and point the consumer to 
the "test:routing-slip" service. Any http request that is directed at 
the url being proxied by the http consumer will be routed to the routing 
slip service, which will route it to test:se1, etc...

Hope that helps.

beppe82 wrote:
> Hi, this is what I want to do:
>
> I have a XML document which contains different tags; the content of the tags
> is used to call 7 stored procedure, which must be called sequentially. To
> have a flexible infrastructure, which permits to add further tags to call
> further stored procedures in the future, I decided to have a routing based
> on configuration. I noticed that servicemix has a static-routing-slip
> service which I can use to define my business process. I would like to
> configure: as FIRST thing the message will be sent to SE1, THEN SE1 send it
> to SE2, THEN SE2 send it to SE3 and so on. How can I do this?
> I think I must create a list of the endpoints that take part to my business
> process, like:
>
> <eip:static-routing-slip service="test:routingSlip" endpoint="endpoint">
>   <eip:targets>
>     <eip:exchange-target service="test:se1" />
>     <eip:exchange-target service="test:se2" />
>                             ...
>   </eip:targets>
> </eip:static-routing-slip>
>
> But how do I use this list?
> Thanks and sorry for my English.
> Giuseppe
>
>
>