java - Create a Camel Route in a different Class -
java - Create a Camel Route in a different Class -
i write application load camel routes.
i have spring - camel instance. load "modules" order routes, , have posibility de- / active set of route module.
so write xml file , unmarschal java-classes. every module java-class. , want define camel routes within java-classes.
when extends java-classes routebuilder, jaxb don't marschal than.
have 1 of thought how can define routes "from().to()" in method class not extends routebuilder?
thank ideas!!!
oh, write question, 5 minutes ago found solution:
public class xyz { public static routebuilder routen() { routebuilder builder = new routebuilder() { public void configure() { errorhandler(deadletterchannel("mock:error")); from("file:documentin").id("defaultroute") .to("file:documentout"); } }; homecoming builder; } }
thank all, , sorry!
java spring jaxb apache-camel
Comments
Post a Comment