You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Jeff Davis <jd...@idalica.com> on 2007/02/11 05:45:04 UTC

Groovy as a BSF Scripting Language Instructions

First off, let me say how delighted I am to have discovered Synapse -- it's
addressing a bit need on my end.

As FYI, I've been able to get Groovy to work as an additional scripting
language by simply including these libraries in the Synapse/lib directory
(they come with the Groovy 1.0 distro):

asm-util-2.2.jar
asm-tree-2.2.jar
asm-attrs-2.2.jar
asm-analysis-2.2.jar
asm-2.2.jar
antlr-2.7.5.jar
groovy-1.0.jar

Here's a simple example of how it can be used inline:

   <script.gy><![CDATA[
     print("** Entering Groovy Script **");
     print(mc.getEnvelopeXML());
   ]]></script.gy>

I'm a big fan of scripting languages in general, but have especially grown
fond of Groovy lately, as it integrates so well with standard Java classes.

jeff
-- 
Jeff Davis
Senior Architect
Idalica Corporation
MSN: jeffdavis_ca@hotmail.com
Skype: jeffdavis_ca
Phone: 949-939-9561
Enabling Business Through Open Source Technologies
www.idalica.com

IMPORTANT: This electronic message is for exclusive use by the person(s) to
whom it is addressed, and may contain information that is confidential or
privileged and exempt from disclosure under applicable law. If you are not
an intended recipient, please be aware that any disclosure, dissemination,
distribution or copying of this communication, or the use of its contents,
is prohibited. If you have received this message in error, please
immediately notify the sender of your inadvertent receipt and delete this
message from all data storage systems.

Re: Groovy as a BSF Scripting Language Instructions

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Jeff
> First off, let me say how delighted I am to have discovered Synapse -- 
> it's
> addressing a bit need on my end.
We are always glad to hear back from real users of Synapse; and very 
delighted when its good feedback :-)
> As FYI, I've been able to get Groovy to work as an additional scripting
> language by simply including these libraries in the Synapse/lib directory
Cool.. though I have never tried Groovy myself it seems it has a good 
user base.. Synapse should support all BSF supported languages thanks to 
the many contributions of Ant Elder
> I'm a big fan of scripting languages in general, but have especially 
> grown
> fond of Groovy lately, as it integrates so well with standard Java 
> classes.
Will surely try to check this out when time permits..  If you would like 
to help us by contributing any code, updates to our samples or docs 
about Groovy or anything else, you would be most welcome.

asankha

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-user-help@ws.apache.org