www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
java_call_method
java_get_property
java_load_class
java_new_object
java_set_property
java_vm_attach
java_vm_detach
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY

Functions Index

java_load_class

Declares a Java class to a Java VM
java_load_class (in java_class_name varchar, in java_class_bytecode varchar);
Description

Defines a java class into the running Java VM. This is useful for loading .class/.jar/.zip files from a BLOB column or from the Virtuoso WebDAV repository.

Parameters
java_class_name – the name under which the class is to be defined
java_class_bytecode – the contents of the .class file.
Examples
Loading a Java Class

Some sample Java code:

java_server.java:

  public class java_server {
    public static int property;
  }

Compiling it makes a java_server.class. Loading it in Virtuoso is as follows:

  java_load_class ('java_server', file_to_string ('java_server.class'));
See Also

java_call_method()

java_set_property()

java_get_property()

java_vm_attach()

java_new_object()

java_vm_detach()