Reputation: 303
Is it possible to deploy a Java Servlet to GAE, or does the server need to be hosted elsewhere?
Upvotes: 2
Views: 1640
Reputation: 31008
Short answer: Yes
Slightly longer answer:
App Engine uses the Jetty servlet container to host applications and supports the Java Servlet API version 2.4. Keep in mind though that there are quite a few restrictions in place that you have to respect (source):
com.google.apphosting.api.DeadlineExceededException
is thrown.Be sure to also read up on The Sandbox to see examples of what will and will not work.
Upvotes: 9
Reputation: 31290
You can deploy a basic servlet to GAE, but there are additional things you need to do for GAE to accept it.
I would highly recommend a quick web search on the topic. You will find that there are tons of resources for this, including the documentation at the GAE site itself.
Upvotes: 1