@Override public void configure() throws Exception { from("direct:start") .marshal(xmlJsonFormat) .to("mock:result"); }
@Override public void configure() throws Exception { if (logger.isDebugEnabled()) { logger.debug("Repo node events routes config: "); logger.debug("SourceQueue is "+sourceQueue); logger.debug("targetTopic is "+targetTopic); } from(sourceQueue).routeId("alfresco.events -> topic:alfresco.repo.events") .marshal("defaultDataFormat").to(targetTopic) .end(); } }
@Override public void configure() throws Exception { if (logger.isDebugEnabled()) { logger.debug("Repo node events routes config: "); logger.debug("SourceQueue is "+sourceQueue); logger.debug("targetTopic is "+targetTopic); } from(sourceQueue).routeId("alfresco.events -> topic:alfresco.repo.events") .marshal("defaultDataFormat").to(targetTopic) .end(); } }
@Override public void configure() throws Exception { JacksonDataFormat configFormat = new JacksonDataFormat(MHWWorkerConfig.class); from("file://"+lmhRoot+"?fileName=worker.cfg&delay=10000&noop=true") .unmarshal(configFormat) .bean(method(this, "setConfig")); from("direct:saveConfig") .marshal(configFormat) .to("file://"+lmhRoot+"?fileName=worker.cfg"); }
@Override public void configure() throws Exception { from("file:gutenberg?recursive=true&noop=true") .bean(new BookParser()) .marshal().jaxb(true) .to("jms:books.in"); from("jms:books.in") .transacted() .bean(bookRepo, "add") .bean(new BookLogger()); }
@Override public void configure() throws Exception { DataFormat core = parser.getFormat("core"); from("sallyservlet:///") .to("freemarker:index.html"); from("sallyservlet:///docmanager") .bean(method(this, "prepareDocManagement")) .to("freemarker:docmanager.html"); from("activemq:queue:"+sallyRegisterQueue) .to("log:registermsg") .unmarshal(core) .bean(method(clientManager, "registerDocument")) .marshal(core); }
@Override public void configure() throws Exception { DataFormat format = new DataFormatAdapter(new TestConverter()); from("direct:external").unmarshal(format); from("direct:internal").marshal(format).convertBodyTo(String.class); }