Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

16.11.11 setXAOpenString

(a) Function

Sets an XA open character string.

(b) Format
 
public void setXAOpenString (String xa_string)
 
(c) Argument

String xa_string
Specifies an XA open character string.
(d) Return value

None.

(e) Functional detail

Sets an XA open character string.

This method is provided by the JdbhDbpsvXADataSource class only.

Specify the XA open character string in the format HiRDB-environment-variable-group-identifier+HiRDB-environment-variable-group-name. This HiRDB environment variable group identifier must be the one set in the setDescription method. The following shows examples.

Example 1
When setting the environment variable group name HiRDB_ENV_GROUP that has been registered by the tool for registering HiRDB client environment variables
 
ds.setDescription("HDB1");
ds.setXAOpenString("HDB1+HiRDB_ENV_GROUP");
 

Example 2
When the path of the HiRDB environment variable group name is C:\Program[Figure]Files\HITACHI\HiRDB\HiRDB.ini ([Figure]: single-byte space)
 
ds.setDescription("HDB1");
ds.setXAOpenString("HDB1+C:\\Program[Figure]Files\\HITACHI\\HiRDB\\HiRDB.ini");
 
(f) Exception that occurs

None.