Skip to main content

%Net.Remote.Java.Test

abstract class %Net.Remote.Java.Test extends %Library.RegisteredObject

Method Inventory

Methods

classmethod Connect(port As %Integer, host As %String) as %Net.Remote.Gateway
final classmethod JDBC(port As %Integer, host As %String = "127.0.0.1", jdbcPort As %Integer = 1972, jdbcHost As %String = "127.0.0.1")
This example establishes a connection with Cache JDBC driver, then executes some standard JDBC code. This code should work against any database that has a JDBC driver. Simply change the connection parameters (driver class name, url, username and password) To run the example, start the Java Gateway Super Server, then from your ENSEMBLE namespace type in Do ##class(%Net.Remote.Java.Test).JDBC(port,host,jdbcPort,jdbcHost)
final classmethod ProcessError(status As %Status)
final classmethod Test(port As %Integer, host As %String = "127.0.0.1")
This shows how to use the sample classes delivered with Ensemble (under /dev/java/samples). To run the example, start the Java Gateway Super Server, then from your ENSEMBLE namespace type in Do ##class(%Net.Remote.Java.Test).Test(port,host)
final classmethod TestArrays(port As %Integer, host As %String = "127.0.0.1")
This shows how to use arrays. The test uses sample classes delivered with Ensemble (under /dev/java/samples). To run the example, start the Java Gateway Super Server, then from your ENSEMBLE namespace type in Do ##class(%Net.Remote.Java.Test).TestArrays(port,host)
final classmethod TestEager(port As %Integer, eager As %Boolean = 1, runs As %Integer = 1000, host As %String = "127.0.0.1")

Inherited Members

Inherited Methods

FeedbackOpens in a new tab