Tuesday, May 7, 2013

Re: Google Cloud SQL with Hibernate and ... c3p0

Hope this helps:


How should I manage connections?
Database connections in a cloud hosted environment should be managed differently to those on a conventional server. In particular, be aware that your database instance may be taken offline while not in use, and any pooled connections would be closed. We recommend that a new connection is created to service each HTTP request, and re-used for the duration of that request (since the time to create a new connection is similar to that required to test the liveness of an existing connection).


On Tue, May 7, 2013 at 12:39 PM, Roland Beuker <roland.beuker@arcus-business.com> wrote:
I want to use Hibernate with Google Cloud SQL. With one connection its working, but when i try to use c3p0 for connection pooling i get a java.security.AccessControlException. The Hibernate documentation states it is important to use connection in a production environment. Is Google going to enable this connection pooling option on Google Cloud SQL?

Regards,

Roland Beuker

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Joe Faith | Product Manager | Google Cloud

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment