<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="HO-S-13">
  <refmeta>
    <refentrytitle>Java Runtime Hosting</refentrytitle>
    <refmiscinfo>tutorial</refmiscinfo>
  </refmeta>
  <refnamediv>
    <refname>Integrating Java Objects with Virtuoso</refname>
    <refpurpose>Using Restrictions for Java hosted types.</refpurpose>
  </refnamediv>

    <refsect1 id="HO-S-13a_overview">
    <title>Overview</title>
  <para>The following tutorial demonstrates how Virtuoso can Restrict Java hosted types. </para>
  </refsect1>

    <refsect1 id="HO-S-13a_overview_prerequisites">
    <title>Prerequisites</title>
  <para>The following prerequisites ensure the usability of these tutorial demos on any platform with a Java Runtime environment:</para>
<itemizedlist>
  <listitem>Java Runtime (J2EE 1.2 and Higher)</listitem>
  <listitem>Java SDK (if you seek to write your own Objects for integration with Virtuoso)</listitem>
  <listitem>Virtuoso Universal Server with Java Runtime Hosting </listitem>
 </itemizedlist>
</refsect1>

    <refsect1 id="HO-S-13a">
    <title>Tutorial Example</title>
<para>Please follow the steps below to maximize the value of this tutorial:</para>
<orderedlist>
  <listitem>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 </listitem>
  <listitem>Click on the "Run" links to actually experience the demo</listitem>
</orderedlist>

<para>Demo Breakdown</para>
<orderedlist>
  <listitem>"ho_s_13.sql" performs the following steps
    <orderedlist>
       <listitem>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 </listitem>
       <listitem>The Restricted types can't write to FS, can't read System envariment. For full list from restrictions, please see documentation.</listitem>
    </orderedlist>
    </listitem>
</orderedlist>
    </refsect1>
</refentry>
