You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by SARA1232007 <cy...@foxmail.com> on 2009/03/12 09:07:29 UTC

Questions about wsrf example

Hi,

In wsrf example, it seems that WSResource instances are assembled into
ServiceGroup automatically. Can anyone tell me how this is done and which
java class is reponsible for this?

Thanks.

SARA
-- 
View this message in context: http://www.nabble.com/Questions-about-wsrf-example-tp22471234p22471234.html
Sent from the Muse - Dev mailing list archive at Nabble.com.


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


Re: Questions about wsrf example

Posted by Chris Twiner <ch...@gmail.com>.
Hiya,

http://ws.apache.org/muse/docs/2.2.0/manual/how-to/wsrf-add-service-groups.html

and in combination with advertisements:

http://www.ibm.com/developerworks/library/ac-museadv/index.html

cheers,
Chris

On Thu, Mar 12, 2009 at 9:07 AM, SARA1232007 <cy...@foxmail.com> wrote:
>
> Hi,
>
> In wsrf example, it seems that WSResource instances are assembled into
> ServiceGroup automatically. Can anyone tell me how this is done and which
> java class is reponsible for this?
>
> Thanks.
>
> SARA
> --
> View this message in context: http://www.nabble.com/Questions-about-wsrf-example-tp22471234p22471234.html
> Sent from the Muse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-dev-help@ws.apache.org
>
>

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


Re: Questions about wsrf example

Posted by Andrea Gazzarini <a....@gmail.com>.
Sorry, Chris answer is obviously more precise...I didn't see that because
I'm writing... :)

Regards,
Andrea

2009/3/12 Andrea Gazzarini <a....@gmail.com>

> If I remember well, in the mentioned example, there's a thread that
> periodically is creating a resource member. The service group will qualify
> that resource as a group member.
>
> There's no a direct / explicit link between the resource and the
> group...the membership rules are defined at RMD level.
> For example, the following is an extract of my service group resource RMD :
>
>         <Property name="wsrf-sg:MembershipContentRule"
> modifiability="read-only" mutability="mutable">
>             <StaticValues>
>                 <wsrf-sg:MembershipContentRule
> MemberInterface="qman:QManWsResourcePortType"/>
>             </StaticValues>
>         </Property>
>
> That property states that all resources that will be created will be part
> of this service group only if they have the mentioned interface (port type).
> Obviously there are a lot of things that you can use in order to specify
> membership rules... you can find a better explanation about that here:
>
>
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-02.pdf
>
> Note that I'm not part of Muse developemnt team so what I'm writing is what
> I understood browsing / using the module.
>
> As I see this is what happens
>
> 1) a resource is created using *
>
> Resource resource = resourceManager.createResource(<resource name>);
> ...
> ...
> ...
> **resourceManager.addResource(resource.getEndpointReference(), resource);*
>
> 2) ResourceManager informs all resource manager listeners about this event
> using *ResourceManagerListener.resourceAdded
> *3) One of the register listeners is the *SimpleServiceGroup *that is
> doing what I described above...
> *
> *Hope it helps...*
>
> *Andrea
> *
> * 2009/3/12 SARA1232007 <cy...@foxmail.com>
>
>
>> Hi,
>>
>> In wsrf example, it seems that WSResource instances are assembled into
>> ServiceGroup automatically. Can anyone tell me how this is done and which
>> java class is reponsible for this?
>>
>> Thanks.
>>
>> SARA
>> --
>> View this message in context:
>> http://www.nabble.com/Questions-about-wsrf-example-tp22471234p22471234.html
>> Sent from the Muse - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-dev-help@ws.apache.org
>>
>>
>

Re: Questions about wsrf example

Posted by Andrea Gazzarini <a....@gmail.com>.
If I remember well, in the mentioned example, there's a thread that
periodically is creating a resource member. The service group will qualify
that resource as a group member.

There's no a direct / explicit link between the resource and the group...the
membership rules are defined at RMD level.
For example, the following is an extract of my service group resource RMD :

        <Property name="wsrf-sg:MembershipContentRule"
modifiability="read-only" mutability="mutable">
            <StaticValues>
                <wsrf-sg:MembershipContentRule
MemberInterface="qman:QManWsResourcePortType"/>
            </StaticValues>
        </Property>

That property states that all resources that will be created will be part of
this service group only if they have the mentioned interface (port type).
Obviously there are a lot of things that you can use in order to specify
membership rules... you can find a better explanation about that here:

http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-02.pdf

Note that I'm not part of Muse developemnt team so what I'm writing is what
I understood browsing / using the module.

As I see this is what happens

1) a resource is created using *

Resource resource = resourceManager.createResource(<resource name>);
...
...
...
**resourceManager.addResource(resource.getEndpointReference(), resource);*

2) ResourceManager informs all resource manager listeners about this event
using *ResourceManagerListener.resourceAdded
*3) One of the register listeners is the *SimpleServiceGroup *that is doing
what I described above...
*
*Hope it helps...*

*Andrea
*
* 2009/3/12 SARA1232007 <cy...@foxmail.com>

>
> Hi,
>
> In wsrf example, it seems that WSResource instances are assembled into
> ServiceGroup automatically. Can anyone tell me how this is done and which
> java class is reponsible for this?
>
> Thanks.
>
> SARA
> --
> View this message in context:
> http://www.nabble.com/Questions-about-wsrf-example-tp22471234p22471234.html
> Sent from the Muse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-dev-help@ws.apache.org
>
>