RE: [picocontainer-dev] JMX / JNDI and exposing
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Konstantin,
Konstantin Priblouda wrote on Wednesday, August 22, 2007 11:23 AM:
> Hi all,
>
> It seems to me that current approach to exposing
> components to JNDI / JMX is bit of suboptimal.
>
> Currently JMX/JNDI behaviours would expose component
> on getComponentInstance() ( and if they are upstack
> from caching, on every getComponentInstance() ) , and
> there is also visitors which poke adapters to force
> exposition.
>
> However, biggest problem for those adapters is that
> they need additional data, which is difficult to
> provide in scripting environment.
> ( JMXExposed requires MBean server, which may be
> unavailable to the moment of script parsing. Not to
> speak about passing it to xml / beanshell script in
> builder )
>
> I would propose to move all the exposing functionality
> to visitors.
>
> Advantages:
> - simplier scripts, no headaches about initial
> context
> or mbean servers there.
> - explicit control when something is exposed.
>
> Disadvantages:
> - need of explicit call to visitor after container
> creation ( but it is also current state )
>
> regards,
> (
All this was resolved in the old JMX impl, so I am simply wondering about this questions!
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email