RE: Connect to hypersonic server

2003-03-11 Thread Charles Anthony
Hi,

You can break down the URL as follows :

jdbc-connection-descriptor platform=hsql
default-connection=true
jcd-alias=
jdbc-level=2.0
driver=thedrivername-can't-remember-it-of-the-top-of-my-head
protocol=jdbc
subprotocol=hsqldb:hsql
dbalias=//localhost:2
username=sa
password=

This is all without looking it up, so it's probably not exactly right; the
key attributes are protocol, subprotocol, and dbalias.

Cheers,

Charles

-Original Message-
From: Peter Kirk [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 11:20
To: 'OJB Users List'
Subject: Connect to hypersonic server


Say I have a hypersonic database server running on port 2. How do I
connect to it with OJB/ODMG?

In the repository xml you can give a dbalias, but this seems 
to be to the
actual file that hypersonic uses.

Eg., I could do something like this (if I wasn't trying to use OJB):
DriverManager.getConnection( 
jdbc:hsqldb:hsql://localhost:2, sa, 
);

Thanks,
Peter




This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connect to hypersonic server

2003-03-11 Thread Peter Kirk
 You can break down the URL as follows :
 
 jdbc-connection-descriptor platform=hsql
 default-connection=true
 jcd-alias=
 jdbc-level=2.0
 driver=thedrivername-can't-remember-it-of-the-top-of-my-head
 protocol=jdbc
 subprotocol=hsqldb:hsql
 dbalias=//localhost:2
 username=sa
 password=
 

Thanks!