I'm learning to use the Google App Engine for a project. I've created a sample web application with the java sdk, in which all the business logic is in the servlets.
Where should be right to put the business logic if I want also to expose the application functionaliti开发者_JS百科es through a RESTful web service (which I understood that is possible with additional framework as Restlet)?
There is any development framework that can help me in this?
Right place to put the business logic would certainly not be servlets. You should put logic in service, and data access classes. Be careful while choosing a framework on GAE as cold start may hurt badly. As for REST framework on GAE, RESTlet has gained some positive response.
Refer RESTful application on Google App Engine Java? and Implementing REST Service (JSON) on Google AppEngine
精彩评论