Re: [picocontainer-dev] MBean for pico?
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
>
> Well, now current version of nanosar rigs up pico
> container and places it onto JNDI. I think "start"
> container is also good idea.
>
> But I lack a good idea how do I force JNDIExposed to
> actually bind - it has to happen right after component
> creation of course, and pretty early.
> ( say - start , then bind all exposed to JNDI possibly
> creating them if not created yet )
pico = new DefaultPicoContainer(new Caching().wrap(new JndiExposing()));
pico.as(jndi("foo/myStockService"))addComponent(MyStockService())
how about that ?
>
> Shall I do this by visitor? And expose to JMX too?
>
> Another Issue I got today is serialisability.
> JBoss likes to serialize everything that is bound
> to JNDI context. And there is JNDIObjectReference,
> which of course holds JNDI-context - which is NOT
> serialisable. OK, I marked it transient for first -
> but this is somehow uncool. Does anyone have a good
> idea how to restore it after deserialisation?
>
will think it over.
> "new InitialContext()" should be fine in JB cluster,
> but I'm not sure about it.
>
> just a random thoughts after forcing kids to bunk ;)
- Paul
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email