Victor
Victor

Reputation: 8480

GoogleAppEngine Backends

How can I create a backend?

The GAE teaches how to configure, but there is no line showing how define the java class that will be called or what request will be done!

Upvotes: 1

Views: 303

Answers (1)

Peter Recore
Peter Recore

Reputation: 14187

From the docs:

Backends share the set of servlets defined in web.xml with your main application version. It is not possible at the moment to configure a separate set of servlets for each backend.

Backends run all the same servlets that your front end does. It is up to you to call the appropriate URLs for whatever tasks you need performed.

For example, if you want your backend to calculate all the prime numbers from 1 to a million, you would create a servlet that uses your GeneratePrimeNumber class, and have that servlet configured to respond to requests to some url, like myapp.appspot.com/calculatePrimes. You would then need to call that URL to make your backend do the work. You could call it from a frontend instance, you could call it from a task in the task queue, or you could call it from a cron job.

See this recent question for more answers to basic back end issues.

Upvotes: 4

Related Questions