1.1.1

Table Of Contents
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
}
Note:
Unlike Derby, SQLFire does not use a databaseName. Instead of a "database" the connection is to a
distributed system. The distributed system is uniquely identied by either the mcast-port or the
locators. See Conguration Properties on page 319.
The subprotocol in the URL sqlfire: ends with a colon (:) and the list of connection attributes starts
with a semicolon (;).
Setting mcast-port to 0 without specifying locators starts a "loner" (single member) distributed
system. See Conguration Properties on page 319.
The list of connection attributes is not parsed for correctness. If you pass an incorrect attribute, it is
simply ignored.
Setting the host-data attribute to true (default) species that data should be hosted in this member.
To avoid hosting data in a member, such as in a peer client, set host-date to false.
121
Developing Java Clients and Peers