On Dec 4, 2007, at 2:00 AM, Liu, Jervis wrote:
> I think we do need to support " int someMethod ()", this make it a
> lot easier when people migrating their existing code to JSR-311.
> For example, I may have following method in my POJO, it is just a
> matter of adding extra JSR-311 annotations then I can expose this
> POJO as a RESTful service.
>
> int getEmployeeAge(String employeeName) {
> ...
> }
No, that would be encouraging folks to migrate one crappy design
to another -- it has nothing to do with being RESTful. There is no
way to "migrate" a POJO design to a RESTful design without completely
redesigning the service. That is, in fact, the entire point -- design
the service so that it matches the reality of network-based applications
instead of doing RPC in yet another inefficient syntax.
....Roy