Knut Anders Hatlen wrote:
James Cowan <[EMAIL PROTECTED]> writes:
Hi
is it possible to make remote connections to an embedded derby database?
No, you'll have to run the the network server. However, the network
server is just a layer of networking code on top of an embedded derby
database, so in some sense you can say it makes it possible to make
remote connections to an embedded database. But that wasn't what you
had in mind, I guess...
Isn't it?
http://db.apache.org/derby/docs/10.1/adminguide/cadminovntsrvsample.html
Quote:
"The embedded driver is loaded when the Network Server is started. The
JVM that starts the Network Server can obtain an embedded connection to
the same database that the Network Server is accessing to serve clients
from other JVMs. This solution provides the performance benefits of the
embedded driver and also allows client connections from other JVMs to
connect to the same database."
To illustrate this in beautiful ascii-art (best viewed with fixed font
width):
+--------------------------------------+
| Client JVM |
| +------------------------+ |
| | Your application logic | |
| +------------+-----------+ |
| | |
| V |
| +----------------------------------+ |
| | Network Client JDBC driver | |
| +-----------------------------+----+ |
| | |
+-------------------------------|------+
|
+-------------------------------|------+
| Server JVM | |
| +------------------------+ | |
| | Your application logic | | |
| +------------+-----------+ | |
| | V |
| | +----------------+ |
| V | Network Server | |
| +-----------------+----------+-----+ |
| | Embedded JDBC driver | | |
| +----------------------------+ | |
| | Derby engine | |
| +----------------------------------+ |
+--------------------------------------+
--
Øyvind Bakksjø
Sun Microsystems, Web Services, Database Technology Group
Haakon VII gt. 7b, N-7485 Trondheim, Norway
Tel: x43419 / +47 73842119, Fax: +47 73842101