Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google AppEngine: What is SystemServiceServlet and its relation to the _ah directory?

Similar to this question, I'm interested in what this SystemServiceServlet even is, and what it's relationship is to the /_ah/spi/ directory I see in the autogenerated web.xml.

What purpose do these serve? Why/when are the necessary? Thanks in advance!

like image 524
Bantha Fodder Avatar asked Oct 20 '12 22:10

Bantha Fodder


2 Answers

Behind the scenes each request to an Endpoint (a path in /_ah/api) is mapped to a request in the Endpoints Service Provider Interface (a path in /_ah/spi). The servlet SystemServiceServlet handles these requests. Without this mapping, requests to Endpoints will not succeed.

The Google Plugin for Eclipse adds the mapping automatically when you indicate that you wish to use Endpoints within your app. If you don't use GPE, you need to add the mapping manually.

like image 117
Dan Holevoet Avatar answered Nov 11 '22 18:11

Dan Holevoet


I think this is related to the Google Endpoints API. I enabled them on my project and saw this same change right after.

like image 23
Bryce Avatar answered Nov 11 '22 18:11

Bryce