You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by liu jie <cn...@yahoo.com.cn> on 2003/06/22 17:02:10 UTC
[merlin]my jndi extension suggestion
i want to use merlin as services server(services
container),especially my module will be blocks. my
blocks don't want to access(dependency) other services
using servicemanager but jndi way.
i saw Peter Donald's excalibur-naming-1.0, i suggest
plug the jndi MemoryContext in merlin kernal.
if my block can access other services using jndi, what
is the function of servicable interface.
_________________________________________________________
Do You Yahoo!?
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [merlin]my jndi extension suggestion
Posted by Stephen McConnell <mc...@apache.org>.
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:mcconnell@apache.org
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [merlin]my jndi extension suggestion
Posted by liu jie <cn...@yahoo.com.cn>.
merlin manage services lifecycle good, lifestyle good,
services life quality need enhanced. they(services)
make friends not easy. jndi is a goods way making
firends of services. u can limit a service only make
friends with permitted services.
_________________________________________________________
Do You Yahoo!?
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [merlin]my jndi extension suggestion
Posted by liu jie <cn...@yahoo.com.cn>.
when one block want to use other block
service,currently
it using servicemanager passed by serviceable
interface.
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.
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.
if my block logic complex , i must allways pass the
block's
servicemanagr from here the here.
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).
--- Stephen McConnell <mc...@apache.org>
的正文:>
>
> liu jie wrote:
>
> > i want to use merlin as services server(services
> >container),especially my module will be blocks. my
> >blocks don't want to access(dependency) other
> services
> >using servicemanager but jndi way.
> >
>
> This is for components inside a servlet ?
>
> >
> >i saw Peter Donald's excalibur-naming-1.0, i
> suggest
> >plug the jndi MemoryContext in merlin kernal.
> >
>
> The approach I've been working on is to embed the
> kernel inside a JNDI
> implementation. This will enable full naming and
> directory
> functionality while maintaining all of the
> publication/isolation
> features within the merlin system.
>
> >
> >if my block can access other services using jndi,
> what
> >is the function of servicable interface.
> >
>
> They are orthoginal.
>
> The serviceable interface provides support for a
> container to "push"
> services to a component. JNDI provides support for
> an implememntation
> to "pull" services in based on a standard naming and
> directory structure.
>
> Cheers, Steve.
>
> --
>
> Stephen J. McConnell
> mailto:mcconnell@apache.org
> http://www.osm.net
>
> Sent via James running under Merlin as an NT
> service.
> http://avalon.apache.org/sandbox/merlin
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail:
> dev-help@avalon.apache.org
>
_________________________________________________________
Do You Yahoo!?
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [merlin]my jndi extension suggestion
Posted by Stephen McConnell <mc...@apache.org>.
liu jie wrote:
> i want to use merlin as services server(services
>container),especially my module will be blocks. my
>blocks don't want to access(dependency) other services
>using servicemanager but jndi way.
>
This is for components inside a servlet ?
>
>i saw Peter Donald's excalibur-naming-1.0, i suggest
>plug the jndi MemoryContext in merlin kernal.
>
The approach I've been working on is to embed the kernel inside a JNDI
implementation. This will enable full naming and directory
functionality while maintaining all of the publication/isolation
features within the merlin system.
>
>if my block can access other services using jndi, what
>is the function of servicable interface.
>
They are orthoginal.
The serviceable interface provides support for a container to "push"
services to a component. JNDI provides support for an implememntation
to "pull" services in based on a standard naming and directory structure.
Cheers, Steve.
--
Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org