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 113053

Summary: JAX-WS client generated code should create listeners
Product: webservices Reporter: carljmosca <carljmosca>
Component: JAX-WSAssignee: Roderico Cruz <rcruz>
Status: RESOLVED FIXED    
Severity: blocker CC: jungi
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description carljmosca 2007-08-17 00:33:40 UTC
Currently when JAX-WS creates beans for web services, the event change notification code is not generated.  The JAX-WS
guys tell me there's a plugin which will create these properly.

See plugin listener injector plugin at https://jaxb2-commons.dev.java.net/

This will allow binding using JSR-295 (and others).
Comment 1 carljmosca 2007-09-12 10:24:31 UTC
Has this been read/considered?
Comment 2 carljmosca 2008-05-24 22:26:03 UTC
As it turns out there are some bugs in this plug-in which prevents it from working as needed.  I have made some
modifications to the plug-in itself and I have modified the jaxws-build.xml (for a given project) and all seems to be
working as needed.
Comment 3 Lukas Jungmann 2008-05-29 12:42:39 UTC
Currently there's Edit WS Attributes -> WSImport Options which allows one to pass options to the wsimport itself but it
does not allow to pass options which should be passed to JAXB...

Maybe splitting the dialog into two parts/"tables" one would be for direct wsimport options and the second one to jaxb
options could help
Comment 4 carljmosca 2008-05-29 13:08:22 UTC
That should work nicely and would be very much appreciated.  

However, ultimately (at least in my opinion) the JAXB2 library should not require the plugin to create the property
change listeners and (correctly) create the Boolean getters.  This, I think, should be expected and should therefore be
the default code creation.

Your proposed solution does have the added benefit of allowing the utilization of other plugins which are available to
JAXB2.
Comment 5 Lukas Jungmann 2008-09-17 19:27:41 UTC
should have been implemented in 6.5 by the fix for issue 144421.
Comment 6 carljmosca 2008-09-17 19:43:42 UTC
Great, thank you.  I'll give it a try.