Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink, JavaSE and multiple JDBC datastores
Eclipselink, JavaSE and multiple JDBC datastores [message #559292] Thu, 16 September 2010 09:52 Go to next message
Andre Rothe is currently offline Andre RotheFriend
Messages: 4
Registered: September 2010
Junior Member
Hi,

I'm looking for an example to connect multiple datastores from a JavaSE application using EclipseLink. I have created some code, but if I close the EntityManager of one persistence unit, I cannot longer access the other.

I use a map of properties for every EntityManagerFactory (with different unit names), so I would expect to have separate EntityManager given by separate factories. But it doesn't work.

Any ideas?
Thanks
Andre
icon14.gif  Re: Eclipselink, JavaSE and multiple JDBC datastores [message #559383 is a reply to message #559292] Thu, 16 September 2010 13:52 Go to previous message
Andre Rothe is currently offline Andre RotheFriend
Messages: 4
Registered: September 2010
Junior Member
Hi,

I have used a wrong reference to the already closed EntityManager.
It works as expected.

Andre
Previous Topic:Embeddables don't inherit their 'isolation' status
Next Topic:ValidationException while deployment on Tomcat with enabled TomcatSecurity
Goto Forum:
  


Current Time: Fri Mar 29 15:48:41 GMT 2024

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

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

Back to the top