Skip to main content


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.


James : Wiki : Book : Blog : Twitter
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: 13
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: 13
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:Problems with aggregate collection mappings
Next Topic:Constraint violation with @OrderColumn
Goto Forum:
  


Current Time: Tue Mar 19 03:24:13 GMT 2024

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

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

Back to the top