|
|
Re: Connection Profile vs. Driver Definitions [message #21260 is a reply to message #21022] |
Thu, 07 September 2006 18:07 |
Rob Cernich Messages: 56 Registered: July 2009 |
Member |
|
|
> What is the difference between a connection profile and a driver
> defintion. I can create a connection to a derby database using either
The driver definition is used for specifying details for a particular
server type; e.g. driver class name, driver jars, etc. In addition to
these, the driver definition may specify default values for things like
connection URL, user id, vendor & version, etc.
A connection profile specifies the details for connecting to a particular
server (e.g. connection URL, uid, pwd, etc.) A connection profile may
reference a driver definition (for most of the db types in DTP, this is
true).
> Is Derby Embedded Database really specific to embedded databases or does
> it apply to networked Derby databases as well?
The Derby embedded database is specific to the embedded database. The
reason for this is that Derby embedded does not support multiple
connections (a singleton instance is shared by all at the connection
factory level; i.e. subsequent IConnectionFactory.createConnection()
requests return the same connection, in addition to bumping up the
reference count) and it does not support java.sql.Connection.close() (to
close you must use java.sql.Driver.connect() with a close URL).
For networked Derby, you should use the generic JDBC profile (SQL
Model-JDBC Connection).
Hope that helps.
Rob
|
|
|
|
Re: Connection Profile vs. Driver Definitions [message #582191 is a reply to message #21022] |
Thu, 07 September 2006 18:07 |
Rob Cernich Messages: 56 Registered: July 2009 |
Member |
|
|
> What is the difference between a connection profile and a driver
> defintion. I can create a connection to a derby database using either
The driver definition is used for specifying details for a particular
server type; e.g. driver class name, driver jars, etc. In addition to
these, the driver definition may specify default values for things like
connection URL, user id, vendor & version, etc.
A connection profile specifies the details for connecting to a particular
server (e.g. connection URL, uid, pwd, etc.) A connection profile may
reference a driver definition (for most of the db types in DTP, this is
true).
> Is Derby Embedded Database really specific to embedded databases or does
> it apply to networked Derby databases as well?
The Derby embedded database is specific to the embedded database. The
reason for this is that Derby embedded does not support multiple
connections (a singleton instance is shared by all at the connection
factory level; i.e. subsequent IConnectionFactory.createConnection()
requests return the same connection, in addition to bumping up the
reference count) and it does not support java.sql.Connection.close() (to
close you must use java.sql.Driver.connect() with a close URL).
For networked Derby, you should use the generic JDBC profile (SQL
Model-JDBC Connection).
Hope that helps.
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds