This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 148880

Summary: Support for stateful services
Product: webservices Reporter: Milan Kuchtiak <mkuchtiak>
Component: JAX-WSAssignee: Milan Kuchtiak <mkuchtiak>
Status: NEW ---    
Severity: blocker CC: rcruz
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Milan Kuchtiak 2008-10-01 17:10:05 UTC
We should support the JAX-WS way of creating stateful web services base on WS Addressing.
May be just create "Make Service Stateful" action that converts Web Service to stateful web service with adequate
modifications, or create a Stateful Service wizard:

This is an idea what can this action/wizard do (suppose we have HelloService web service)

Server side :
- add @Stateful annotation
- add id field 
- and non default constructor (with id parameter)
- add StatefulWebServiceManager manager field
- create a "Factory" web service with getReference(id) method to obtain EndpointReference object used to get
HelloService port for given id  

Client side (Stateful service client):
- Enable to specify wsdl file for web service and wsdl file for Factory service.
- generate JAX-WS artifacts for both services
- in D&D action genarate sample code that will use Factory Service to obtain the (Hello)Service port instance (for given
ID).
- then the selected WS operation will be invoked on that port instance.