On Wed, Apr 22, 2009 at 5:05 AM, SARA1232007 <[email protected]> wrote:
>
> Hi,
>
> It seems that in simple example, the managed resource is created when the
> invocation to it is called. And in wsrf example, a factory resource is used
> to create WsResource resource. What confused me is:
> Under what situation a factory is needed to create managed resource, and
> under what situation the resource is created automatically when the
> invocation to it is called?
>

Best advice is to always declare resources in the file system that you
intend to have available at startup (as per most examples). If you
need to create resources dynamically use a factory operation to create
them and return a new epr (look at the pullpoint interface for an
example).

If these aren't appropriate for you then at the other end of the scale
you can proxy (be careful with subscriptions though):

http://www.ibm.com/developerworks/autonomic/library/ac-muse.html?S_TACT=105AGX09&S_CMP=TipWSDM2

it also helps understand how muse creates resources dynamically.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to