Java Runtime Hosting
HO-S-13 Integrating Java Objects with Virtuoso
Using Restrictions for Java hosted types.
Overview
The following tutorial demonstrates how Virtuoso can Restrict Java hosted types.
Prerequisites
The following prerequisites ensure the usability of these tutorial demos on any platform with a Java Runtime environment:
- Java Runtime (J2EE 1.2 and Higher)
- Java SDK (if you seek to write your own Objects for integration with Virtuoso)
- Virtuoso Universal Server with Java Runtime Hosting
Tutorial Example
Please follow the steps below to maximize the value of this tutorial:
- Click on the "Set Initial State" link which registers the Java classes used in this demo with Virtuoso. Click on the "ho_s_13.sql" link to see the code behind this step
- Click on the "Run" links to actually experience the demo
Demo Breakdown
- "ho_s_13.sql" performs the following steps
- Registers the "Restricted" and "Unrestricted" Classes with Virtuoso as UDTs. Click on the "Restricted.java" and "Unrestricted.java" links to see the JAVA source code
- The Restricted types can't write to FS, can't read System envariment. For full list from restrictions, please see documentation.
In order to run this example you need start tomcat.
In order to run this example you need Java Runtime Hosting Enabled.
| View the source | Action |
|---|---|
| 1. ho_s_13.sql | Set the initial state |
| 2. Restricted.java | |
| 3. Unrestricted.java | |
| 4. restricted.vsp | Run |
| 5. unrestricted.vsp | Run |
OpenLink Home
Technical Support