我有一個簡單的使用Java編寫的路由,並將jar文件部署到activemq/lib 並更新了activeMQ.xml以通過package can元素查找路由。ActiveMQ駱駝管理路由
但路線是沒有出現在Web管理控制檯...想知道什麼是涉及的其他步驟......
public class SampleConnectorRoute extends RouteBuilder {
public void configure() {
from("file://c:/app/mdt/dropbox/new").to("file://c:/app/mdt/dropbox/processed");
}
public static void main(String[] args) throws Exception {
SampleConnectorRoute builder = new SampleConnectorRoute();
builder.runSampleConnectorRoute();
}
public void runSampleConnectorRoute() throws Exception {
// create CamelContext
CamelContext camelContext = new DefaultCamelContext();
camelContext.addRoutes(this);
camelContext.start();
System.out.println("Context Started");
}
}
那麼我下的ActiveMQ以下配置/ conf目錄/activemq.xml http://activemq.apache.org/camel/schema/spring「> com.apps.mdt.routes
顯示您的Java代碼 – Archer 2010-08-15 15:20:16