You can configure the JDBC connection to a Shared Memory Access (SMA) server to be a local (rather than RPC-based) connection by using the following connection property:
Properties props = new Properties(); // enable the direct access property props.put("solid_shared_memory", "yes"); // get connection Connection c = DriverManager.getConnection ("jdbc:solid://localhost:1315", props);