Mashups in EMML : Writing Mashups in EMML : Transforming Intermediate Results : Adding User-Defined Scripting Code to Mashups : Access to Java Classes
Access to Java Classes
For JRuby scripts in existing mashups, access to Java classes is implicit in the language. JRuby is deprecated for development in new mashups.
For JavaScript scripts, the following classes are accessible in a <script> command
*Java language classes.
*Classes in any JAR files deployed in the path identified by the application attribute. See Adding User-Defined or Third-Party Java Classes for JavaScript Access for more information.
*Any class in the classpath for the Presto Server.
Use fully-qualified class names, such as in this example:
<script type="text/javascript">
<![CDATA[
var p = java.util.regex.Pattern.compile("a*b");
var m = p.matcher("aaaaab");
var b = m.matches();
print(b);
]]>
</script>
Important:  
For Java language classes, access is dependent on the version of the JDK used by the application server that hosts the Presto Server.
Copyright © 2006-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback