Apache-Camel:camelcontext似乎不起作用

时间:2015-05-06 07:04:03

标签: xml spring xsd apache-camel

详细说明:

使用JAR - camel-core-2.5.0.jar,camel-spring-2.5.0.jar

应用程序服务器:Websphere 8.5(具有java se 7)

配置文件:

<?xml version = "1.0" encoding = "UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:amq="http://activemq.apache.org/schema/core"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jms="http://www.springframework.org/schema/jms"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:camel="http://camel.apache.org/schema/spring"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
  http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd
  http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 
  http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd
  ">

    <camel:camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
        <camel:package>com.myapp.routes</camel:package>
    </camel:camelContext>

我们有一个扩展routebuilder的文件

public class SomeRouteBuilder extends RouteBuilder {

...
...

public void configure() throws Exception {

...
...

from("file://E:/somedirectory/".process(new FileWaitProcessor()).process(new Processor() {

不起作用。什么都没发生。它应该检测放在某个文件夹中的文件并对其进行处理。日志中没有看到异常,xml配置文件中没有错误。

有人可以帮忙吗?

0 个答案:

没有答案