Question of wsrf example-3

View: New views
3 Messages — Rating Filter:   Alert me  

Question of wsrf example-3

by SARA1232007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have some more question about wsrf example as following:

1. Question-1
WsResource.rmd has two Properties defined as following;
                <Property name="wsrl:CurrentTime" modifiability="read-only" mutability="mutable" />
               
                <Property name="wsrl:TerminationTime" modifiability="read-only" mutability="mutable" />

How does CurrentTime and TerminationTime properties be set to get its right value? Which java class is responsible for this?

2.Question-2:
Does muse create a capability instance for each resource instance or each resource class

Hope someone to give some help.

Thanks

Sara

Re: Question of wsrf example-3

by Andrea Gazzarini-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does muse create a capability instance for each resource instance or each
resource class? 
> Yes

2009/3/16 SARA1232007 <cyl_axis@...>

Hi,

I have some more question about wsrf example as following:

1. Question-1
WsResource.rmd has two Properties defined as following;
               <Property name="wsrl:CurrentTime" modifiability="read-only"
mutability="mutable" />

               <Property name="wsrl:TerminationTime" modifiability="read-only"
mutability="mutable" />

How does CurrentTime and TerminationTime properties be set to get its right
value? Which java class is responsible for this?

2.Question-2:
Does muse create a capability instance for each resource instance or each
resource class

Hope someone to give some help.

Thanks

Sara
--
View this message in context: http://www.nabble.com/Question-of-wsrf-example-3-tp22537830p22537830.html
Sent from the Muse - Dev mailing list archive at Nabble.com.


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



Re: Question of wsrf example-3

by Chris Twiner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Mar 16, 2009 at 2:10 PM, SARA1232007 <cyl_axis@...> wrote:

>
> Hi,
>
> I have some more question about wsrf example as following:
>
> 1. Question-1
> WsResource.rmd has two Properties defined as following;
>                <Property name="wsrl:CurrentTime" modifiability="read-only"
> mutability="mutable" />
>
>                <Property name="wsrl:TerminationTime" modifiability="read-only"
> mutability="mutable" />
>
> How does CurrentTime and TerminationTime properties be set to get its right
> value? Which java class is responsible for this?

org.apache.muse.ws.resource.lifetime.impl.SimpleScheduledTermination
is the capability that contains these features.

CurrentTime is never set, only returned and TerminationTime must be
set either by the client or another capability.

> 2.Question-2:
> Does muse create a capability instance for each resource instance or each
> resource class

By default each resource has a instance of each capability declared
against it.  When you are looking at a huge number of instances its
probable that you want to proxy them instead:

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

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