[ http://jira.andromda.org/browse/SPRING-131?page=comments#action_13563 ] 

Peter Friese commented on SPRING-131:
-------------------------------------

I asked Eberhard Wolff of Interface21 to comment on the solution provided by 
Cyril, and he answered that:
- in order to achieve stafulness, one should first try to use the HTTP session
- Spring 2 offers a way to specify the scope of a bean: 
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes-custom
- using a cache is a valid option to achieve the goal

So, although I am not fully satisfied with the solution provided, I give my +1 
here. Seems to me as if statefulness is a blind spot in Spring :-(. 

The patch itself is fine - good work, Cyril.

> Allow the creation of stateful services
> ---------------------------------------
>
>          Key: SPRING-131
>          URL: http://jira.andromda.org/browse/SPRING-131
>      Project: Spring Cartridge
>         Type: Improvement

>     Reporter: Cyril Combe
>     Assignee: Wouter Zoons
>  Attachments: SPRING-131-StatefulServicesWithSpringOnly.diff, 
> SpringMetafacadeModel.xml.zip, andromda-profile-service.xml.zip
>
> If a <<Service>> stereotyped classifier has instance scoped attributes, it 
> should be implemented as a stateful service (a stateful session bean if EJBs 
> are enabled).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to