I have a simple Route written in Java and have the jar file deployed to activemq/lib and updated the activeMQ.xml to look for the route via the package can element.
But the route is not showing up in the web admin console... wondering what other steps are involved...
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");
}
}
then i have the following config under activemq/conf/activemq.xml http://activemq.apache.org/camel/schema/spring"> com.apps.mdt.routes