liu jie wrote:
when one block want to use other block service,currently it using servicemanager passed by serviceable interface.
Yes - assuming you using the work "block" in the Phoenix context - i.e. a component with an xinfo describing services and dependencies.
when my block dirve other modules, these moudles want to use other block's service, my block must pass it's servicemanager to these driven modules.
If I understand correctly - you have a component that is receiving a service manager and you want to pass this service manager on to other objects. I would probably wrap the supplied service manager in another service manager before exposing it.
i write a block for jetty, jetty drive a servlet, the servlet want to use other block's service, i must pass jetty block's servicemanager to servlet in servletcontext, then the servlet get jetty block's servicemanager from servletcontext and access other block's services.
This is workable.
if my block logic complex , i must allways pass the block's servicemanagr from here the here.
You can always create a new service manager which contains additional services.
DefaultServiceManager manager = new DefaultServiceManager(); manager.put( "some-key", myService );
i write a block for apache axis, axis is a soap
engine, it can translate a soap message to a rpc invoking to a webservice, the soap engine only translate a soap message to a webservice rpc invoking. my webservice can not get the blocks
servicemanager, so my webservice lonely and can not get other blocks help(services).
Is there a problem declaring the dependencies that the axis component has? I'm not really following completely the dependencies/service graph in this example.
In principal you should be able to state the set of services needed by any component, and the set of services published by each component. From that you should be able to draw a graph that connects provider components with consumer components.
Hope that helps.
Steve.
--
Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net
Sent via James running under Merlin as an NT service. http://avalon.apache.org/sandbox/merlin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
