我正在尝试以 Java 配置方式在 Spring 中配置 Apache Camel,如本示例中所述。但是我被困在依赖步骤,因为BundleContextAware
和(传递地)BundleContext
无法解决。似乎没有下载必要的传递依赖项。这是我的 pom.xml:
<properties>
<apache.camel.version>2.9.0</apache.camel.version>
</properties>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>${apache.camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
<version>${apache.camel.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-javaconfig</artifactId>
<version>${apache.camel.version}</version>
</dependency>
这是示例中的代码片段:
/**
* Router from a file system to an ActiveMQ queue and then to a file system
*
* @version
*/
@Configuration
public class MyRouteConfig extends SingleRouteCamelConfiguration
implements InitializingBean, BundleContextAware {
private BundleContext bundleContext;
...
...
}