[ http://jira.andromda.org/browse/SPRING-131?page=comments#action_12284 ] Cyril Combe commented on SPRING-131: ------------------------------------
Taking a deeper look in Spring documentation, I realized that an inner bean does not have to be flagged with <singleton="false">. By default it is created as a prototype. So the entry for the stateful service should be: <!-- MyStatefulService Service Proxy with inner MyStatefulService Service Implementation --> <bean id="myStatefulService" class="org.springframework.aop.framework.ProxyFactoryBean" singleton="false"> <property name="target"> <bean class="my.package.MyStatefulServiceImpl"> <property name="myDao"><ref bean="myDao"/></property> </bean> </property> <property name="proxyInterfaces"> <value>my.package.MyStatefulService</value> </property> <property name="interceptorNames"> <list> <value>serviceTransactionInterceptor</value> <value>hibernateInterceptor</value> </list> </property> </bean> > 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: Chad Brandon > > 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). ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php