Skip to content

Commit 9d49779

Browse files
authored
Add files via upload
1 parent cfbf826 commit 9d49779

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

java/ojvm/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Java in the Database (OJVM) examples
2+
This folder stores Java based examples for the embedded JVM of the Oracle Database (a.k.a. OJVM). We are referring to plain Java code
3+
with embedded SQL statements, similar to client JDBC code.
4+
5+
The motivations for running Java code directly in the database include:
6+
* reusing Java code, Java libraries, and Java skills (developers) for database modules written in Java thereby allowing the same
7+
language across the mid-tier and the database-tier. The embedded JVM (a.k.a. OJVM also allows JavaScript (see our examples), Scala
8+
(see [Igor Racic's examples](http://www.igorandsons.com/)). I also described in [chapter 5 of my book](https://www.amazon.com/dp/1555583296), how to run run Jython, Jacl, Scheme, and Groovy in the database
9+
* the other key reason for running Java directly in the database is performance; really? Yes, even if HotSpot or external JVMs run
10+
pure Java sligthly faster than OJVM (but no one runs pure Java code i.e., Fibonnaci computation in the database), running Java in
11+
the database cuts the network traffic incurred by the steps involved in processing SQL statements (i.e., parse, and/or bind, and/or
12+
execute, and fetches).
13+
You can see for yourself with the TrimBlog and Workers examples (running both inside and outside the database).
14+
15+
In addition, for JSON collections and documents, you can also use the fluent Java API using SODA for Java. See SODA.md and testSODA.java for a complete example.
16+
17+
[Documentation](http://docs.oracle.com/database/122/JJDEV/toc.htm)
18+
19+
[What's in Oracle database 12c Release 2 for Java & JavaScript Developers?](http://bit.ly/2orH5jf)
20+
21+
[Community Forum](https://community.oracle.com/community/database/developer-tools/jvm)

0 commit comments

Comments
 (0)