开发者

Application on Google App Engine with Web and RESTful interface

开发者 https://www.devze.com 2023-03-24 16:43 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消