Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
JavaReal Overview (JReal/RealSQL-JDBC) (overview.htm)
The Reality Java Interface is made up of two components: JReal and the Reality SQL/JDBC Driver.
JReal comprises
com.northgateis.comms.dda
package. These classes
allow a Java program to make a connection and access information in a
Reality database by sending DDA messages across a TCP/IP network.com.northgateis.reality.rsc
package. These classes
allow a Java program to access a Remote Basic subroutine (a DataBasic
subroutine that has been enabled for use via remote access).ItemView
, which allows a Reality item to be
broken down into attributes, values and subvalues.The RealSQL-JDBC Driver comprises
com.northgateis.reality.realsql
package. The driver uses the JReal DDA package to make a connection and
access data on a Reality database. The RealSQL classes allow the Java program to
construct SQL commands to
execute queries or update the database.This programming guide provides advice for the Java programmer wishing to enquire upon or update a Reality database using one of the following methods:
A knowledge of Java is assumed for programmers using any of these methods. For users of Method 2, a knowledge of Java servlets and of HTML is also assumed. This guide includes links to the RealWeb help. For users of Method 3, a knowledge of Java and of SQL is assumed. When writing applets to connect via the RealSQL-JDBC driver, you need to know a reasonable amount about applet security issues, including how to sign an applet. Links are included to the SQL for Reality documentation. See also Recommended Reading.
Programmers using any method will need to use the Java Development Kit (JDK) and need to install JReal V1.0 on the client. Where Method 2 is used, it is assumed that RealWeb V3.0 is installed on the client; for Method 3, it is assumed that the Reality SQL/JDBC Driver V1.0 is installed.
This programming guide includes links to the JavaDocs for each of the Java classes used to provide the interface between Java and Reality.
Before you can call a Remote Basic subroutine using JReal, you must establish a connection to an account on a Reality database - you will need to use a user-id that has been set up as described in Setting up Security for External Access.
Configuring SQL/JDBC is described in SQL for Reality - Setting Up a Working System.