Skip to content

Commit 68cab46

Browse files
authored
Add files via upload
1 parent ddccdda commit 68cab46

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

javascript/nashorn/README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11

22
# Nashorn based examples
33
Java 8 furnishes Nashorn, a JavaScript engine which runs on the JVM including JDK, JRE, and the embeded JVM in the Oracle database a..k.a. OJVM.
4-
This folder stores database related Nashorn based examples (i.e., plain JavaScript + SQL statements) including JavaScript with OJVM, and JavaScript with JDK/JRE.
4+
This folder stores database related Nashorn based examples (i.e., plain JavaScript + SQL statements) including JavaScript Stored procedures with OJVM, and standalone/client JavaScript functions with JDK/JRE.
55

6-
Nashorn allows interoperability between Java and JavaScript, therefore, the SQL statements are invoked using JDBC which is a portable standard Java API.
6+
For data access, Nashorn allows interoperability between Java and JavaScript, therefore, the SQL statements are invoked using JDBC which is a portable standard Java API.
77

8-
[A reprint of my blog post](https://blogs.oracle.com/nashorn/entry/javascript_stored_procedures_and_node)
8+
For JavaScript Stored Procedures, the steps are very simple
9+
1) create/design your JavaScript function in a file
10+
2) load the JavaScript file into your database schema using the loadjava utility (DBMSJAVASCRIPT role required)
11+
3) invoke it using (i) either DBMS_JAVASCRIPT.run(<JSfile>) or (ii) DbmsJavaScript.run Java call, or (iii) using javax.script API
912

10-
[Nashorn jsr223 engine notes](https://wiki.openjdk.java.net/display/Nashorn/Nashorn+jsr223+engine+notes)
13+
[See my blog post for more details](http://db360.blogspot.com/search?updated-max=2016-11-09T08:41:00-08:00&max-results=3)
1114

1215
[Documentation](http://bit.ly/2nstiYQ)
1316

0 commit comments

Comments
 (0)
close