apache cxf と camel を使用して安らかな Web サービスを作成しています。私の構成は次のようなものです:
<camelcxf:rsServer id="applicationserver" address="/" staticSubresourceResolution="true">
<camelcxf:serviceBeans>
<ref bean="Demo" />
<ref bean="Foo" />
<ref bean="Bar" />
</camelcxf:serviceBeans>
</camelcxf:rsServer>
サービスとして公開されている 3 つのサービス Bean があり、異なる URL にマップされており、ルートは次のようになります。
<camel:route id="ServerRoute">
<camel:from uri="cxfrs://bean://applicationserver" />
<camel:process ref="camelCxfInProcessor" />
<camel:to uri="http://google" />
<camel:to uri="bean:googlereqreshandler" />
3 つすべてが異なる機能を持っているため、サービス Bean ごとに異なるルートが必要ですが、自分で何を書くべきかを判断できません。
<from: uri="cxfrs://bean://aplicationserver..."/>
サービス Bean に従ってルートを区別するためのタグ。または、これを行う他の方法はありますか?何か提案してください。