[ https://issues.apache.org/jira/browse/SM-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krzysztof Sobkowiak resolved SM-2381. ------------------------------------- Resolution: Fixed Fixed in * {{servicemix-5.0.x}} -- http://git-wip-us.apache.org/repos/asf/servicemix/commit/88e7e5a7 * {{servicemix-5.1.x}} -- http://git-wip-us.apache.org/repos/asf/servicemix/commit/d457a41a * {{servicemix-5.2.x}} -- http://git-wip-us.apache.org/repos/asf/servicemix/commit/8ff3c8ed * {{servicemix-5.3.x}} -- http://git-wip-us.apache.org/repos/asf/servicemix/commit/b283e7ae * {{master}} -- http://git-wip-us.apache.org/repos/asf/servicemix/commit/12a2aeb7 Thanks to Filippo Balicchia for the patch!! > Web Script Console Plugin > ------------------------- > > Key: SM-2381 > URL: https://issues.apache.org/jira/browse/SM-2381 > Project: ServiceMix > Issue Type: New Feature > Components: core > Affects Versions: 5.0.x, 5.2.x > Reporter: filippo balicchia > Assignee: Krzysztof Sobkowiak > Priority: Minor > Fix For: 5.0.5, 5.1.3, 5.2.0, 6.0.0, 5.3.0 > > Attachments: patch.txt > > > IMHO this can be useful. > I will provide asap the documentation > To try it > {noformat} > features:install web-script-console > {noformat} > * Point the browser on servicemix webconsole > * Main tab and select Script Console > Execute this script > {code} > import org.apache.camel.* > import org.apache.camel.impl.* > import org.apache.camel.builder.* > def camelContext = new DefaultCamelContext() > camelContext.addRoutes(new RouteBuilder() { > def void configure() { > from("timer://foo?period=3000") > .to("log://fooLogger?level=INFO") > .process(new Processor() { > def void process(Exchange exchange) { > println("Hello World! from Shell script") > } > }) > } > }) > camelContext.start() > Thread.sleep(10000); > camelContext.stop() > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)