Re: per-request life cycle <was> Re: Precondition support

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 12 Apr 2007 19:26:58 +0200

Jerome Louvel wrote:
> Paul,
>> After some mulling over of this you convinced me that a
>> per-request life
>> cycle is the right thing to concentrate on. EE focused developers may
>> find it a bit odd because of servlets and session beans but i
>> think it
>> makes it easier for developers.
> Cool. It's nice to see some consensus here :)


I know I am pushing back very hard on some things. To be clear it is not
from a position of not wanting to change. Simply put i think some of the
things you are proposing by way of annotations and the level of choice
are unnecessarily complex.

>> I believe we can afford a more complex algorithm if it is possible to
>> scale out the application according to the RESTful style.
>> However, i do think some way to allow a resource to be
>> singleton could
>> still be useful for specialized/optimal cases as the
>> performance gains
>> can potentially be substantial. But i do not think this should be the
>> primiary case we concentrate on.
> Like a Servlet can be marker as synchronized, it should be possible to mark
> a Resource as a singleton.



| ? + ? = To question
    Paul Sandoz