This is definitely a flaw in the current WSRP code. To get the
notifications due to an internal set, you have to do this:
QName propertyName = ...
Collection<PropertyChangeListener> listeners = getPropertyCollection
().getChangeListeners(propertyName);
for (PropertyChangeListener listener : listeners)
listener.propertyChanged(propertyName, oldValue, newValue);
The wsdl2java code gen should be updated to include this code (I believe
there's a method in AbstractWsResourceCapability that could be invoked) in
all setter methods.
Dan
<[EMAIL PROTECTED]> wrote on 08/01/2007 04:58:13 PM:
> Hi All,
>
> Is there a simple way, when using a capabilities set function, to fire
> property change notifications?
>
> Currently I'm using a Proxy to wrap the actual set with notifying all
> changelisteners for a resource (on that QName). While it removes
> duplication of code I'm concerned I'm missing something simpler.
>
> cheers,
> Chris