This gateway allows JBoss ESB services to integrate a Groovy script (http://groovy.codehaus.org/) and use it to drive messages into the bus. This powerful dynamic nature of the script allows you to integrate any supported type of external client.
The only configuration supported by this gateway is through the
<groovy-listener>
element which has a single attribute, script
, containing the location of the script to execute.
The gateway creates three variables which can be accessed from within the script. The variables are:
A typical configuration for this gateway is shown below:
<groovy-listener name="Chapter6GroovyListener" script="mygroovyscript" is-gateway="true"/>