Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Eclipselink, JavaSE and multiple JDBC datastores
Eclipselink, JavaSE and multiple JDBC datastores [message #559292] Thu, 16 September 2010 05:52 Go to next message
Eclipse UserFriend
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 09:52 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:51:20 EDT 2025

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

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

Back to the top