[
https://issues.apache.org/activemq/browse/CAMEL-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xueqiang Mi updated CAMEL-1655:
-------------------------------
Attachment: camel-web-20090611.patch
Camel-web Groovy and Ruby rotue editing support patch.Now camel-web module
allow user to editing routes by using Groovy and Ruby language. These function
are supported by camel-groovy and camel-ruby modules.Two examples of editing a
route are as follows:
1. Editing a rotue in Groovy.
package org.apache.camel.web.groovy.example
import org.apache.camel.language.groovy.GroovyRouteBuilder;
class GroovyRoutes extends GroovyRouteBuilder {
void configure() {
from("direct:a").to("mock:results")
}
}
2. Editing a route in Ruby.
require 'camel'
include_class "org.apache.camel.ruby.RubyCamel"
class RubyRoutes < Camel::RubyRouteBuilder
def configure
from "direct:a"
to "mock:results"
end
end
RubyCamel.addRouteBuilder(RubyRoutes.new)
There may be some exceptions when typing in error format route configuration. I
will fix them ASAP.
> Groovy Route Editor for WebConsole
> ----------------------------------
>
> Key: CAMEL-1655
> URL: https://issues.apache.org/activemq/browse/CAMEL-1655
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-web
> Reporter: Jonathan Anstey
> Assignee: Xueqiang Mi
> Attachments: camel-web-20090611.patch
>
>
> Our Google Summer of Code student Xueqiang Mi will be attaching code updates
> to this JIRA for review. See
> http://cwiki.apache.org/confluence/display/CAMEL/GSoC+2009 for more info on
> the project.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.