You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2014/10/10 19:23:33 UTC
[jira] [Updated] (SM-2381) Web Script Console Plugin
[ https://issues.apache.org/jira/browse/SM-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krzysztof Sobkowiak updated SM-2381:
------------------------------------
Fix Version/s: 5.4.0
> 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, 5.4.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)