Marcelo,

Here are what the lines do:

//retrieve the TopicSpaceSet for the resource.....
//The TopicSpaceSet is basiacally a set of things (Topics) which a
notifc consumer may subscribe to.
TopicSpaceSet aSet = getTopicSpaceSet();  

//adds the MUWS relationship Topic to the resource's TopicSpaceSet.  
//This means it will send notifications if releationships are added or
removed to the resource.
MuwsUtils.addRelationshipTopics(aSet);

//Adds a TopicSpace for MUWS....This can be used to add other
MUWS-defined Topics to.
TopicSpace muwsTopicSpace = new TopicSpaceImpl(
MuwsConstants.NSURI_MUWS_PART2_TOPICS );

//Adds the MUWS TopicSpace to the TopicSpaceSet.
//Note..If an existing MUWS TopicSpace already exists, this method will
merge-in the other entries into this reference (muwsTopicSpace) 
//and overwrite in the set...This ensures you can still use your
muwsTopicSpace reference to add Topics
aSet.addTopicSpace( muwsTopicSpace );

-------------------------

>>Does framework implement Topic, TopicExpressionDialects and
TopicExpressionDialects for us?
Yes.  We take all the info and setup the appropriate info for those
required Topics.  NOTE: The ResourceProperties
Must exist in your WSDL.

>>who is announced about change events?
Subscribers to the defined Topics will receive events on those Topics.
So if you defined a ResourceProperty named FOO and someone subscribed to
the FOO Topic, if FOO changes the subscriber will received the
notification.  Notification consumers (the subscribers) are registered
as listeners to the actual Topic object during a subscribe operation.
When a property changes (which is registered for prop change notifs),
the framework pulls the associated Topic and "publishes" to all its
listeners...


Hopefully allot of this will be cleared up as our documentation comes
out for the 1.0 releases....

-Sal







-----Original Message-----
From: Marcelo Iury [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 07, 2005 12:06 AM
To: [email protected]
Subject: Doubts about WS-Notification and Example

Hello all!

I'm newbie in the Muse Framework and I'm try to implement a service that
use the set of WS-* implemented in Muse.
I got a traditional simple service that implement a Calculator. I'll now
add ws-notification features. To reach this goal, I studied the muse's
example to help my efforts.

In the example, IntegrationserverResource has this piece of code:
...
TopicSpaceSet aSet = getTopicSpaceSet();
MuwsUtils.addRelationshipTopics(aSet);

        //MUWS TopicSpace
TopicSpace muwsTopicSpace = new TopicSpaceImpl(
    MuwsConstants.NSURI_MUWS_PART2_TOPICS ); aSet.addTopicSpace(
muwsTopicSpace ); ...


I didn't understand this. What are made in theses two parts?  Does
framework implement Topic, TopicExpressionDialects and
TopicExpressionDialects for us?

Another doubt is who is announced about change events?


Best regards,
Marcelo Iury




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to