"Path based routing" to another internal serviceProxy?

34 views
Skip to first unread message

mats....@yahoo.com

unread,
Feb 12, 2019, 5:23:05 PM2/12/19
to membrane-monitor
Hi,

I am wondering if it is possible to forward processing of a request from one serviceProxy to another based on the requested URL. 

The cbr (content based routing) interceptor is pretty close to what I am looking for, however, instead of branching based on the body content, I would need to branch based on the URL.

For example, would this be valid?

<serviceProxy>
...
<rewrite>
 <map from="(...)" to="service:myproxy1/$1"/>
 <map from="(...)" to="service:myproxy2/$1"/>
</rewrite>
...
</serviceProxy>

<serviceProxy name="myproxy1">...</serviceProxy>
<serviceProxy name="myproxy2">...</serviceProxy>


Many thanks in advance!
Reply all
Reply to author
Forward
0 new messages