Jboss Fuse 6.3で新しくできました。私はスケジュールされた時間にFTPサーバーからいくつかのファイルを取得する必要があります。私は 'CronScheduledRoutePolicy'(http://camel.apache.org/cronscheduledroutepolicy.html)を使用する1つのソリューションを見つけました。私はこの例外を受け取り、バンドル内の未解決の制約 - osgi.wiring.package; (osgi.wiring.package = org.apache.camel.routepolicy.quartz)
<bean id="startPolicy" class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy">
<property name="routeStartTime" value="{{epayment.authorization.timer.cron}}"/>
</bean>
<camelContext id="epayment-batch" autoStartup="{{batch.authorization.autoStartup}}" trace="false" xmlns="http://camel.apache.org/schema/blueprint">
<route id="pullFileFromFtp" routePolicyRef="startPolicy" autoStartup="false">
<from uri="ftp://{{epayment.batch.username}}@{{epayment.batch.host}}{{epayment.batch.remotePath}}?password={{epayment.batch.password}}&move={{epayment.batch.remotePath.bkp}}"/>
<to uri="file://{{epayment.batch.localPathOut}}"/>
<log message="This is the body: ${body}"/>
</route>
</camelContext>
</blueprint>
が、JBossのヒューズは、起動時に::
org.osgi.framework.BundleException: Unresolved constraint in bundle epayment [303]: Unable to resolve 303.0: missing requirement [303.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel.routepolicy.quartz)(version>=2.18.0)(!(version>=3.0.0)))
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Unknown Source)
誰かが私を助けることができる私は、このように私のバンドルにこのソリューションを使用しようとしましたか?私はcamel-quartz-2.18.1.jarを展開しようとしましたが(それを展開ディレクトリにコピーします)、それは役に立ちません。