Hello,

I think it would be very interesting in some situations to mix Servicemix
and Groovy in a simple way, by using a DSL (Domain Specific Language, see
http://docs.codehaus.org/display/GROOVY/Writing+Domain-Specific+Languages)
written in Groovy language.

For example, we can imagine some Groovy code like this, using the Groovy
builder's notion in order to generate all the artefacts for the deployment :

def SMServicesBuilder = new SMServicesBuilder()

SMServicesBuilder.container {
  // here service element under will be deployed to the
servicemix-lwcontainer
  servicemix-lwcontainer {
    service(name: 'myservice', description:'' file: 'exemple.groovy',
endpoint: '...', destination: '...')
    service(name: 'myservice1', description:'' file: 'exemple1.groovy',
endpoint: '...', destination: '...')
  }
}

Recently I've written some Groovy code to generate a SA using the Groovy
AntBuider.

Bertrand Goetzmann
http://www.odelia-technologies.com/
-- 
View this message in context: 
http://www.nabble.com/ServiceMix%2C-Groovy-and-DSL-tf3853206s12049.html#a10915880
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to