Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2381

Web Script Console Plugin

    XMLWordPrintableJSON

    Details

      Description

      IMHO this can be useful.
      I will provide asap the documentation

      To try it

      features:install web-script-console
      
      • Point the browser on servicemix webconsole
      • Main tab and select Script Console

      Execute this script

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

        Attachments

        1. patch.txt
          1 kB
          Filippo Balicchia

          Issue Links

            Activity

              People

              • Assignee:
                sobkowiak Krzysztof Sobkowiak
                Reporter:
                fbalicchia Filippo Balicchia
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: