Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink + c3p0
Eclipselink + c3p0 [message #547389] Fri, 16 July 2010 14:38 Go to next message
Daniel Frank is currently offline Daniel FrankFriend
Messages: 14
Registered: July 2010
Junior Member
Hi all,
How can i get configure Eclipselink do use c3p0?
Regards,
Re: Eclipselink + c3p0 [message #550890 is a reply to message #547389] Wed, 04 August 2010 14:58 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Assuming C3PO supports the javax DataSource API, then should be no problem, either register it in JNDI, or use a SessionCustomizer to set the DataSource directly in your Session's DatabaseLogin's JNDIConnector.

Otherwise, you could create your own subclass of JNDIConnector or even ExternalConnectionPool to make use of it.
Re: Eclipselink + c3p0 [message #551030 is a reply to message #550890] Wed, 04 August 2010 22:42 Go to previous messageGo to next message
Daniel Frank is currently offline Daniel FrankFriend
Messages: 14
Registered: July 2010
Junior Member
Thank you.
Re: Eclipselink + c3p0 [message #1752538 is a reply to message #550890] Tue, 24 January 2017 23:55 Go to previous messageGo to next message
Ari Meyer is currently offline Ari MeyerFriend
Messages: 12
Registered: July 2016
Junior Member
Hi James,

I'm using EL 2.6.4, and don't see any such methods exposed on the DatabaseLogin instance, nor the Session itself. Any ideas? Alternatives?

Thanks,
Ari
Re: Eclipselink + c3p0 [message #1752767 is a reply to message #1752538] Fri, 27 January 2017 01:50 Go to previous message
Ari Meyer is currently offline Ari MeyerFriend
Messages: 12
Registered: July 2016
Junior Member
For my simple purposes, I just found this embedded JNDI impl, and it worked fine: https://code.google.com/archive/p/osjava/wikis/SimpleJNDI.wiki
see also: http://fandry.blogspot.com/2011/03/junit-based-integration-testing-with.html (I used c3p0 to externalize my DB config)
Previous Topic:Existing managed object being inserted
Next Topic:Lazy fetched ManyToOne field of an embedded object of a newly persisted entity resets to null
Goto Forum:
  


Current Time: Thu Mar 30 02:58:46 GMT 2017

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

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