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 191997 - Annotate each RESTful web service with @RequestScoped annotation if CDI enabled
Summary: Annotate each RESTful web service with @RequestScoped annotation if CDI enabled
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 10:49 UTC by Denis Anisimov
Modified: 2010-11-17 07:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Anisimov 2010-11-16 10:49:43 UTC
If you want a JAX-RS resource class to be  
managed by CDI you need to annotation it with a CDI-scope annotation  
such as @RequestScoped or @ApplicationScoped. 

It is useful to have @RequestScoped annotation for generated JAX-RS web service.
Comment 1 Denis Anisimov 2010-11-16 13:20:52 UTC
changeset:   182377:041b2973a0c2
user:        Denis Anisimov <ads@netbeans.org>
date:        Tue Nov 16 16:18:02 2010 +0300
summary:     Fix for BZ#191997 -  Annotate each RESTful web service with @RequestScoped annotation if CDI enabled
Comment 2 Quality Engineering 2010-11-17 07:09:13 UTC
Integrated into 'main-golden', will be available in build *201011170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/041b2973a0c2
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#191997 -  Annotate each RESTful web service with @RequestScoped annotation if CDI enabled