dev@jax-ws.java.net

Re: scratch _at_Stateful, welcome 'feature'

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Wed, 11 Oct 2006 16:41:08 -0400

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