You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by le...@bt.com on 2007/03/15 18:24:25 UTC

LifeCycleEvent notification

Hi guys

I'm having a bit of a problem getting lifecycle notification when I
change a property within a WSDM enabled resource.

The Create/destruction events are sent out fine. Attached is the Soap
Trace and the actual Notifications sent out (I've removed the duplet
namespace manually, and used Vim to view the xml file as other editors
complain).

I've attached my wsdl and rmd files as well, if needed I can pack the
test project in a zip-file and provide that as well should the need
arise.

/Lenni

RE: LifeCycleEvent notification

Posted by Daniel Jemiolo <da...@us.ibm.com>.
Does resource type A have the WSN NotificationProducer capability, and are 
you subscribe()ing to the property changes you want? The advertisement 
subscription that is causing the creation/destruction notifications is 
only for those notification topics - it won't affect any of the resources' 
other notifications. If you do have NotificationProducer in place, just 
make a JIRA issue and attach the project files there so we can debug from 
there.

Thanks,
Dan



<le...@bt.com> wrote on 03/15/2007 07:10:08 PM:

> Sorry I forgot the brief overview I usually provide, my bad.
> 
> Brief overview:
> 1) a factory is created, creation notification is sent
> 2) the factory is used to create a new Resource (named A from here on), 
> creation notification is sent
> 3) A has some property value changed with the SetResourceProperty, no 
change 
> notification is sent
> 4) A is destroyed, notification is sent
> 
> So I'm left wondering if I'm doing something wrong, in such case I could 

> provide the rest of the experimental project to help you help me :)
> or if there might be something else going on.
> 
> /Lenni
> 
> -----Original Message-----
> From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
> Sent: Thu 15-Mar-07 6:16 PM
> To: muse-user@ws.apache.org
> Subject: Re: LifeCycleEvent notification
> 
> Not sure what the error is give your trace files - are you saying that:
> 
> 1. You create a resource, and the WSDM advertisement is sent.
> 2. You destroy a resource, and the WSDM advertisement is sent.
> 3. If, in between creation and destruction, you modify a resource 
property 
> with SetResourceProperties, no destruction advertisement will be sent.
> 
> 
> When I look at your trace, I see two creation notifications but only one 

> destruction notification, so the above description would make sense. Let 

> me know if I have it right.
> 
> Thanks,
> Dan
> 
> 
> 
> <le...@bt.com> wrote on 03/15/2007 01:24:25 PM:
> 
> > Hi guys
> > 
> > I'm having a bit of a problem getting lifecycle notification when I
> > change a property within a WSDM enabled resource.
> > 
> > The Create/destruction events are sent out fine. Attached is the Soap
> > Trace and the actual Notifications sent out (I've removed the duplet
> > namespace manually, and used Vim to view the xml file as other editors
> > complain).
> > 
> > I've attached my wsdl and rmd files as well, if needed I can pack the
> > test project in a zip-file and provide that as well should the need
> > arise.
> > 
> > /Lenni
> > [attachment "SoapTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
> [attachment 
> > "notificationTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


RE: LifeCycleEvent notification

Posted by le...@bt.com.
Sorry I forgot the brief overview I usually provide, my bad.

Brief overview:
1) a factory is created, creation notification is sent
2) the factory is used to create a new Resource (named A from here on), creation notification is sent
3) A has some property value changed with the SetResourceProperty, no change notification is sent
4) A is destroyed, notification is sent

So I'm left wondering if I'm doing something wrong, in such case I could provide the rest of the experimental project to help you help me :)
or if there might be something else going on.

/Lenni

-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Thu 15-Mar-07 6:16 PM
To: muse-user@ws.apache.org
Subject: Re: LifeCycleEvent notification
 
Not sure what the error is give your trace files - are you saying that:

1. You create a resource, and the WSDM advertisement is sent.
2. You destroy a resource, and the WSDM advertisement is sent.
3. If, in between creation and destruction, you modify a resource property 
with SetResourceProperties, no destruction advertisement will be sent.


When I look at your trace, I see two creation notifications but only one 
destruction notification, so the above description would make sense. Let 
me know if I have it right.

Thanks,
Dan



<le...@bt.com> wrote on 03/15/2007 01:24:25 PM:

> Hi guys
> 
> I'm having a bit of a problem getting lifecycle notification when I
> change a property within a WSDM enabled resource.
> 
> The Create/destruction events are sent out fine. Attached is the Soap
> Trace and the actual Notifications sent out (I've removed the duplet
> namespace manually, and used Vim to view the xml file as other editors
> complain).
> 
> I've attached my wsdl and rmd files as well, if needed I can pack the
> test project in a zip-file and provide that as well should the need
> arise.
> 
> /Lenni
> [attachment "SoapTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
[attachment 
> "notificationTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org




Re: LifeCycleEvent notification

Posted by Daniel Jemiolo <da...@us.ibm.com>.
Not sure what the error is give your trace files - are you saying that:

1. You create a resource, and the WSDM advertisement is sent.
2. You destroy a resource, and the WSDM advertisement is sent.
3. If, in between creation and destruction, you modify a resource property 
with SetResourceProperties, no destruction advertisement will be sent.


When I look at your trace, I see two creation notifications but only one 
destruction notification, so the above description would make sense. Let 
me know if I have it right.

Thanks,
Dan



<le...@bt.com> wrote on 03/15/2007 01:24:25 PM:

> Hi guys
> 
> I'm having a bit of a problem getting lifecycle notification when I
> change a property within a WSDM enabled resource.
> 
> The Create/destruction events are sent out fine. Attached is the Soap
> Trace and the actual Notifications sent out (I've removed the duplet
> namespace manually, and used Vim to view the xml file as other editors
> complain).
> 
> I've attached my wsdl and rmd files as well, if needed I can pack the
> test project in a zip-file and provide that as well should the need
> arise.
> 
> /Lenni
> [attachment "SoapTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
[attachment 
> "notificationTrace.xml" deleted by Daniel Jemiolo/Durham/IBM] 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org