1
我堅持用駱駝文件,因爲它不是很清楚......多個內部路線
我想在Spring中定義這條路線:
in: direct access from a url
out: get an object instance from a factory
--> format this object in Json
我試着編組像這樣:
<camel:route id="viewObject">
<camel:from uri="restlet:/json/" />
<camel:to uri="bean:myFactory" />
<camel:unmarshal ref="jack" />
</camel:route>
,但它不工作作爲輸入後,解組作品和輸出之前,這種預期,所以我試圖重新路由輸出到另一個端點。
<camel:route id="formatObject">
<camel:from uri="bean:myFactory" />
<camel:unmarshal ref="jack" />
<camel:to uri="mock:reverse" />
</camel:route>
基本上我想要我的對象:
public class MyObject{
private String name;
[ getter & setter here]
}
進行解組這樣說:
{name : 'a value'}
而這僅與編組和駱駝配置。 請大家幫忙,明確的解釋和howtos太受歡迎
謝謝!是肯定混淆,完美的作品 – TecHunter 2012-08-06 12:00:49