On Fri, Dec 6, 2013 at 3:52 AM, Raúl Gualberto Tinoco <[email protected]>
 wrote:

> I would like to know if is possible to stablish a jdbc conection to an
> external mysql database from a j2ee application in google appengine. I try
> it and i have got the
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
> not create connection to database server., and i don't know if it's
> possible.
>


You can't establish a JDBC connection to any SQL server other than Google's
own Cloud SQL service. The App Engine sandbox blocks the usual MySQL
drivers from running.

If you have access to an external machine, you can implement a REST
interface so you can tunnel your SQL queries over HTTP. A word of warning
though: this method can be slow.


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to