Camelのサンプルで、よく"direct"のキーワードが出てきますが、その簡単な使い方。Servletで受信したメッセージをCamelのdirectコンポーネントを介してCamelに送るサンプルです。
HelloWorldサーブレット
public class HelloWorld extends HttpServlet {
}
applicationContext.xmlの中身 <camelContext id="myCamel" xmlns="http://camel.apache.org/schema/spring" autoStartup="true"> <!-- camelContextのidはmyCamel --> <route id="directテスト"> <from uri="direct:inPort" /> <to uri="SomeProcess" /> <log logName="LOG_1" loggingLevel="INFO" message="body=${body}" /> </route> </camelContext>