Home > Class Reference > %SYS namespace > %Net.Remote.Java.Test

%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 [ Language = objectscript ]
final classmethod JDBC(port As %Integer, host As %String = "127.0.0.1", jdbcPort As %Integer = 1972, jdbcHost As %String = "127.0.0.1") [ Language = objectscript ]
This example establishes a connection with the InterSystems 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 production-enabled namespace type in Do ##class(%Net.Remote.Java.Test).JDBC(port,host,jdbcPort,jdbcHost)
final classmethod ProcessError(status As %Status) [ Language = objectscript ]
final classmethod Test(port As %Integer, host As %String = "127.0.0.1") [ Language = objectscript ]
This shows how to use the sample classes delivered with InterSystems IRIS (under /dev/java/samples). To run the example, start the Java Gateway Super Server, then from your production-enabled 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") [ Language = objectscript ]
This shows how to use arrays. The test uses sample classes delivered with InterSystems IRIS (under /dev/java/samples). To run the example, start the Java Gateway Super Server, then from your production-enabled 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") [ Language = objectscript ]

Inherited Members

Inherited Methods

FeedbackOpens in a new window