Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Sharing embedded Derby with other plugins
Sharing embedded Derby with other plugins [message #57407] Tue, 21 July 2009 21:43 Go to next message
No real name is currently offline No real nameFriend
Messages: 121
Registered: July 2009
Senior Member
Hi,
I am using OpenJPA, DTP and Derby in my Eclipse RCP app. Before I added
OpenJPA, I was using my own JDBC layer and obtained the JDBC connection
from DTP profile manager.

Now, when I use OepnJPA, I cannot connect to the database in the DSE and
navigate the tables, schemas, etc. Instead, I must stop the OpenJPA
processing, then I can connect to DSE. While DSE is connected, OpenJPA
cannot access the Derby instance.

Ideally, I could use OpenJPA and DSE simultaenously (ie, two
connections) without going Derby Client/Server. I currently use the
Derby embedded driver.

Is there a way two components such as these can access the same Derby
instance? I understand that only one can "boot" Derby.

Has anyone else come across this situation already?

Thanks,
chris
Re: Sharing embedded Derby with other plugins [message #57432 is a reply to message #57407] Thu, 23 July 2009 14:24 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Chris Giblin wrote:
> Ideally, I could use OpenJPA and DSE simultaenously (ie, two
> connections) without going Derby Client/Server. I currently use the
> Derby embedded driver.
>
> Is there a way two components such as these can access the same Derby
> instance? I understand that only one can "boot" Derby.
>
> Has anyone else come across this situation already?

Hi Chris...

One possible solution... Create two different driver definitions for the
Derby driver so each has its own classloader (ultimately this is the
limiting factor from what I remember). See if using one for OpenJPA and
one for the DSE makes a difference.

--Fitz
Re: Sharing embedded Derby with other plugins [message #596115 is a reply to message #57407] Thu, 23 July 2009 14:24 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Chris Giblin wrote:
> Ideally, I could use OpenJPA and DSE simultaenously (ie, two
> connections) without going Derby Client/Server. I currently use the
> Derby embedded driver.
>
> Is there a way two components such as these can access the same Derby
> instance? I understand that only one can "boot" Derby.
>
> Has anyone else come across this situation already?

Hi Chris...

One possible solution... Create two different driver definitions for the
Derby driver so each has its own classloader (ultimately this is the
limiting factor from what I remember). See if using one for OpenJPA and
one for the DSE makes a difference.

--Fitz
Previous Topic:Sharing embedded Derby with other plugins
Next Topic:Error while trying to get tables from a MySQL database
Goto Forum:
  


Current Time: Thu Nov 14 08:07:22 GMT 2024

Powered by FUDForum. Page generated in 0.02929 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top