[jboss-svn-commits] JBL Code SVN: r11514 - labs/jbossesb/trunk/product/samples/quickstarts/scripting_groovy/scripts.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Apr 30 13:45:19 EDT 2007
Author: burrsutter
Date: 2007-04-30 13:45:18 -0400 (Mon, 30 Apr 2007)
New Revision: 11514
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/scripting_groovy/scripts/messagePlay.groovy
Log:
cleaned up so that the byte array wasn't dumped out to the console. Now it has nice pretty messages
Modified: labs/jbossesb/trunk/product/samples/quickstarts/scripting_groovy/scripts/messagePlay.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/scripting_groovy/scripts/messagePlay.groovy 2007-04-30 16:28:16 UTC (rev 11513)
+++ labs/jbossesb/trunk/product/samples/quickstarts/scripting_groovy/scripts/messagePlay.groovy 2007-04-30 17:45:18 UTC (rev 11514)
@@ -1,13 +1,11 @@
import org.jboss.soa.esb.message.*
-println message
message.body.add("ScriptingBy", "Groovy - the best scripting language on the planet")
-println "MessageBody"
-println message.body.contents
+println new String(message.body.contents)
-println "That was the set of bytes that made up this message"
+message.body.contents = ("Message modified by Groovy: " + new String(message.body.contents)).getBytes()
-println message.body.names
-println "Those were the property names for this message"
\ No newline at end of file
+println new String(message.body.contents)
+
More information about the jboss-svn-commits
mailing list