Wednesday, November 18, 2015

[google-cloud-sql-discuss] Re: connecting from app engine to an external database via JDBC

You're correct that JDBC connections on arbitrary ports are not going to work on App Engine, without seriously patching the driver and having it use the Sockets API, which is not the same as general sockets. However, JDBC connections to Cloud SQL are possible, as described in the docs. On Managed VMs, you have unrestricted access to the filesystem, network interfaces, process control, etc., so the App Engine sandbox doesn't apply and standard JDBC will easily function.

I hope this has helped answer your question, and feel free to browse the docs to learn more about the App Engine runtime, or Managed VMs on the other hand.

On Tuesday, November 17, 2015 at 1:08:00 PM UTC-5, Robert Dyas wrote:
From App Engine is it possible to make a JDBC connection to a remote database in another cloud or on-premises?
I see that your sockets API is limited, so wondering if this would work.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/59136848-e514-4440-b064-65717788e4ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment