On 9/20/06, Myrna van Lunteren <[EMAIL PROTECTED]> wrote:

Hi Deepa,
When running the tests against a remote server, you pass in a property
'hostName' for the server's host(-DhostName=xyz.mycompany.com) to the
test harness. This can be accessed through the TestUtil.getHostName()
method.
I tried to add the following to this section in the tests (note,
edited the spacing):
- - - - - - -  -
 private static void testClientDSConnectionAttributes() throws SQLException {
    ClientDataSource ds = new ClientDataSource();

    System.out.println("DataSource - EMPTY");
+    String hostName=TestUtil.getHostName();
+    if ((hostName != null) && (!hostName.equals("localhost")))
+        ds.setConnectionAttributes("serverName=" + hostName);
- - - - - - -  -
But it seemed to have no effect, I must've done something wrong?

"serverName" is not in the list of Derby connection attributes and
hence cannot be specified as a connection attribute.
http://db.apache.org/derby/docs/10.2/ref/rrefattrib24612.html#rrefattrib24612

Can you try using ds.setServerName method?

Thanks,
Deepa

Reply via email to