English 中文(简体)
MULE流动动态变量?
原标题:Dynamic variable in Flow in MULE?

我在马歇尔有流动,其中包括一个有约束的吉大港山区和以下的构成部分:

<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>

现在,如果我必须接受另一个URL的要求,例如“当地东道:8000/j分/meta/user2”,我必须创造另一种流动。

MULE中是否有任何选择,如“地方托管:8000/jcore/meta/{variable}”,在哪里可以读到这一变量,并按此称呼适当的构成部分类别?

最佳回答
  • Consider creating JAX-RS annotated resources and the Jersey Module so all this URL-based dispatching will be done automatically for you.
  • Otherwise, just bind MetaService to "http://localhost:8000/jcore/meta", then have a choice router that looks at the actual request path ("/jcore/meta/user" or "/jcore/meta/user2") and dispatch to the right destination accordingly.
问题回答

暂无回答




相关问题
passing form variables into a url with php

I have the following form which allows a user to select dates/rooms for a hotel reservation. <form action="booking-form.php" method="post"> <fieldset> <div class="select-date">...

Error: "Cannot modify the return value" c#

I m using auto-implemented properties. I guess the fastest way to fix following is to declare my own backing variable? public Point Origin { get; set; } Origin.X = 10; // fails with CS1612 Error ...

C-style Variable initialization in PHP

Is there such a thing as local, private, static and public variables in PHP? If so, can you give samples of each and how their scope is demonstrated inside and outside the class and inside functions?

C#/.NET app doesn t recognize Environment Var Change (PATH)

In my C# app, I am programmatically installing an Oracle client if one is not present, which requires adding a dir to the PATH system environment variable. This all works fine, but it doesn t take ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

How to dynamically generate variables in Action Script 2.0

I have a for loop in action script which I m trying to use to dynamically create variable. Example for( i = 0 ; i &lt 3 ; i++) { var MyVar+i = i; } after this for loop runs, i would like to ...

热门标签