« Return to Thread: mule 2 template-endpoint-router

Re: mule 2 template-endpoint-router

by Dimitar Dimitrov :: Rate this Message:

Reply to Author | View in Thread

Just for the record, the regular endpoint template router is configured like this:

<endpoint-template-router address="foobar://server:1234/path/path/path?param1=[header1]¶m2=[header2]"/>

Where the header1 and 2 are substituted with the actual values from the current message. Also, the params can be used only in the query string as the square brackets are not valid characters for the authority and path URI components.

My modification is similar, but it allows you to use evaluator expressions anywhere in the URI:

<endpoint-template-router-x address="foobar://server:1234/$(header:SERVICE)/$(jxpath:/entity/id)?version=$(jxpath:/entity/version)"/>

 « Return to Thread: mule 2 template-endpoint-router