db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piet Blok" <pbh...@wanadoo.nl>
Subject Re: Derby ClientDriver versus EmbeddedDriver and a question about the Eclipse plugin
Date Tue, 23 Aug 2005 15:55:27 GMT
Hi Øystein

I filed a Jira issue (Derby-530) on the Properties issue. I included a code 
fragment illustrating a workaround for the problem. I see no reason why the 
ClientDriver cannot do the same internally.

However, there are some other issues: actually, I do not exactly understand 
yet the difference between connection attributes and database or other 
attributes. The manuals name a couple of connection attributes, but are 
these the only attributes? I have to do a lot more studying the manuals and 
experimenting before I feel comfortable to comment on your remarks.

Piet Blok

----- Original Message ----- 
From: ""Øystein Grøvlen"" <Oystein.Grovlen@Sun.COM>
To: "Derby Discussion" <derby-user@db.apache.org>
Sent: Tuesday, August 23, 2005 2:00 PM
Subject: Re: Derby ClientDriver versus EmbeddedDriver and a 
question about the Eclipse plugin

>>>>>> "PB" == Piet Blok <pbhome@wanadoo.nl> writes:
>    PB> Hi,
>    PB> I noticed some different behaviour between Derby EmbeddedDriver and 
> ClientDriver. This was a disappointment, because I wanted to develop a 
> Derby application that may switch between the two drivers.
>    PB> Differences I noticed are:
>    PB> 1) EmbeddedDriver accepts and uses a Properties object as the 
> second parameter on the connect method. ClientDriver accepts, but does NOT 
> USE the Properties object. A bug?
> I guess the problem here is that many of the properties has to be set
> when the Derby is started.  In the embedded framework this is done on
> the first connect.  In the client/server framework, I guess Derby is
> started before the first connect.  Hence, it will be too late to set
> the properties.  In my opinion, the ClientDriver should throw an
> exception if it is not able to set a property.
> -- 
> Øystein

View raw message