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/09/28 21:03:33 UTC

[jira] [Commented] (SM-2381) Web Script Console Plugin

    [ https://issues.apache.org/jira/browse/SM-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151182#comment-14151182 ] 

Krzysztof Sobkowiak commented on SM-2381:
-----------------------------------------

More info can be found under http://felix.apache.org/documentation/subprojects/apache-felix-script-console-plugin.html

> 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
>            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)