Dynamic variable in Flow in MULE..? -
Dynamic variable in Flow in MULE..? -
i have flow in mule contains http inbound , component class below :
<flow name="metaservice"> <http:inbound-endpoint address="http://localhost:8000/jcore/meta/user" transformer-refs="httpparams" responsetransformer-refs="javaobjecttojson"> </http:inbound-endpoint> <component class = "com.jcore.meta" /> </flow>
now if have take request url, "localhost:8000/jcore/meta/user2", have create flow..!!
is there alternative in mule "localhost:8000/jcore/meta/{variable}" , in can read variable , phone call appropriate component class according that..??
consider creating jax-rs annotated resources , jersey module url-based dispatching done automatically you. otherwise, bind metaservice "http://localhost:8000/jcore/meta", have selection router looks @ actual request path ("/jcore/meta/user" or "/jcore/meta/user2") , dispatch right destination accordingly.
variables dynamic mule flow choice
Comments
Post a Comment