Kohsuke Kawaguchi wrote:
>
> Based on feedback, I removed @Stateful annotation from the service and
> replaced that with a feature:
>
> OLD:
>
> > @WebService
> > @Stateful
> > public class Account {
>
> NEW:
>
>> @WebService
>> @BindingType(features={_at_Feature(ServerFeatures.STATEFUL),_at_Feature(AddressingFeature.ID)})
>>
>> public class Account {
>
Thanks Kohsuke. Suddenly @Stateful doesn't look so bad ;8-)
Please do consider adding @Webservice.stateful in a future version
of the spec if this feature is ever considered for standardization.
Adding a property on the Webservice annotation seems like the most
natural place for it.
--Ryan