[OT] Asked on the hibernate list, and scouring docs for this - datasource question

View: New views
6 Messages — Rating Filter:   Alert me  

[OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Rick R-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This was a question I posted to the Hibernate forum and haven't gotten a response yet, and not sure I will since I've been googling and seen the questions asked before, but people never seem to reply. I'm hoping maybe someone here could possibly help out. The bottom line is:

-----
I want to use a datasource - c3p0 or dbcp - defined within my app (using hibernate.cfg.xml or programatically)  - not a datasource provided by the appserver. No matter what I try though, when Hibernate starts up it says:

"org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)"
-----

I've even followed exactly what the docs mention (as I presented in my forum post follow up.)  I'm not sure why I'm having such a difficult time with this. It looks like you can't even configure hibernate to use commons-dbcp which I thought was odd, but at least let me get c3p0 working.

Here's my post in context:

https://forum.hibernate.org/viewtopic.php?f=1&t=999022&p=2416552#p2416552

Thanks for any help.

--
Rick







 

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: [OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Rob Worsnop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Perhaps this is your problem:

https://www.hibernate.org/250.983.html

On Mon, Aug 17, 2009 at 10:33 AM, Rick<rickcr@...> wrote:

> This was a question I posted to the Hibernate forum and haven't gotten a
> response yet, and not sure I will since I've been googling and seen the
> questions asked before, but people never seem to reply. I'm hoping maybe
> someone here could possibly help out. The bottom line is:
>
> -----
> I want to use a datasource - c3p0 or dbcp - defined within my app (using
> hibernate.cfg.xml or programatically)  - not a datasource provided by the
> appserver. No matter what I try though, when Hibernate starts up it says:
>
> "org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate
> built-in connection pool (not for production use!)"
> -----
>
> I've even followed exactly what the docs mention (as I presented in my forum
> post follow up.)  I'm not sure why I'm having such a difficult time with
> this. It looks like you can't even configure hibernate to use commons-dbcp
> which I thought was odd, but at least let me get c3p0 working.
>
> Here's my post in context:
>
> https://forum.hibernate.org/viewtopic.php?f=1&t=999022&p=2416552#p2416552
>
> Thanks for any help.
>
> --
> Rick
>
>
>
>
>
>
>
>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members@...
> http://www.ajug.org/mailman/listinfo/ajug-members
>
>

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: [OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Rick R-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Aug 17, 2009 at 11:15 AM, Rob Worsnop <rworsnop@...> wrote:
Perhaps this is your problem:

https://www.hibernate.org/250.983.html

Thanks, but I had tried that but "org.hibernate.connection.C3P0ConnectionProvider" doesn't even exist as far as I can tell in 3.4.0.GA (which I'm using.) Do I need an additional hibernate jar that I'm not aware of?

(Also tried just removing min_size and it made no difference either... still using default hibernate implemenation.)

Thanks,
Rick

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: [OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Rick R-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahh looks like I might need a different jar http://opensource.atlassian.com/projects/hibernate/browse/HHH-3615   dang, I hope they update the docs on this.

On Mon, Aug 17, 2009 at 1:18 PM, Rick <rickcr@...> wrote:
On Mon, Aug 17, 2009 at 11:15 AM, Rob Worsnop <rworsnop@...> wrote:
Perhaps this is your problem:

https://www.hibernate.org/250.983.html

Thanks, but I had tried that but "org.hibernate.connection.C3P0ConnectionProvider" doesn't even exist as far as I can tell in 3.4.0.GA (which I'm using.) Do I need an additional hibernate jar that I'm not aware of?

(Also tried just removing min_size and it made no difference either... still using default hibernate implemenation.)

Thanks,
Rick



--
Rick R

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: [OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Ramesh Rajamani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
You required hibernate3.jar file which has that class...
 
Regards,
Ramesh Rajamani

 

Date: Mon, 17 Aug 2009 13:18:08 -0400
From: rickcr@...
To: ajug-members@...
Subject: Re: [ajug-members] [OT] Asked on the hibernate list, and scouring docs for this - datasource question

On Mon, Aug 17, 2009 at 11:15 AM, Rob Worsnop <rworsnop@...> wrote:
Perhaps this is your problem:

https://www.hibernate.org/250.983.html

Thanks, but I had tried that but "org.hibernate.connection.C3P0ConnectionProvider" doesn't even exist as far as I can tell in 3.4.0.GA (which I'm using.) Do I need an additional hibernate jar that I'm not aware of?

(Also tried just removing min_size and it made no difference either... still using default hibernate implemenation.)

Thanks,
Rick


Match ‘n’ Make new friends with the cool match-meter. Join the Planet with you Hotmail ID. Drag n’ drop
_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members

Re: [OT] Asked on the hibernate list, and scouring docs for this - datasource question

by Rick R-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, Aug 17, 2009 at 2:12 PM, Ramesh Rajamani <rameshrajamani@...> wrote:
You required hibernate3.jar file which has that class...

I just added the hibernate-c3p0.jar instead. Thanks for everyone's help.

<dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-c3p0</artifactId>
            <version>3.3.1.GA</version>
        </dependency>
 

_______________________________________________
ajug-members mailing list
ajug-members@...
http://www.ajug.org/mailman/listinfo/ajug-members