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 - Support for stateful services
Summary: Support for stateful services
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-01 17:10 UTC by Milan Kuchtiak
Modified: 2008-10-01 17:25 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.