|Re: OSGi ManagedServiceFactory understanding [message #105935 is a reply to message #105922]
||Fri, 07 March 2008 01:36
| Xiang Qinxian
Registered: July 2009
Hope I caputer it correctly.
Supposed A function pool be actived by invocation of remote function
call, which can give a some style key, and the key indicate which pool
should be active.
So the function pool can be mananged by cm.
the managed service can be updated and activate the target pool.
Seems no problem.
But IMO the true problem is that you must worry about the concurrency
with the remote calls. it's a true concurrency.
In my mind, I would use cm in a frequency changing case, but a relative
long-time lifecycle service management.
In the scenario you discribed, I prefer to make a Map<Map<Pool>> service
for the remote invocation dispatch.
Philipp Kursawe 写道:
> I wonder if something like the following scenario is possible with
> I have to call a remote function and this function object is provided by
> a function pool. In my program I want only create a
> RemoteFunction("SOME_NAME") and call its RemoteFunction.execute() method.
> Internally the RemoteFunction object is created from the currently
> active FunctionPool if there is one. Otherwise its constructor would
> throw an exception. There can be any number of FunctionPools registered
> in the system with only one being active. The user of the RemoteFunction
> object should not have to worry if there is an active FunctionPool.
> My understanding is that ManagedServiceFactory could provide such a "on
> demand" service creation?
> Thanks for any thoughts,
Powered by FUDForum
. Page generated in 0.02286 seconds