You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Dmitry Kozakov <di...@java.crimea.com> on 2005/05/04 18:16:23 UTC
Registry hierarchies
Good day.
I have a little question. How much
HiveMind has static objects?
I want to write some container (some thing
like Plexus or Phoenix) based on HiveMind.
But during code hacking I saw
* This instance is stored into
* {@link
ServiceSerializationHelper#setServiceSerializationSupport(ServiceSerializationSupport)}.
* This may cause errors (and incorrect behavior) if multiple
Registries exist in a single JVM.
in the RegistryInfrastructureImpl.
My idea was very simple to rewrite RegistryInfrastructureImpl which will
delegate search and get
methods to the parent if it cannot do itself.
Can I do this (I do not keep in mind startUp service and
ShutdownCoordinator)
or there are no any guarantees that Registry will not be corrupted. I
wrote some tests for hierarchy
they are worked but I am newbie in the HiveMind and I am not sure that I
included all
possibilties
Best Regards
Dmitry
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Registry hierarchies
Posted by Howard Lewis Ship <hl...@gmail.com>.
HiveMind makes almost no use of statics.
PropertyUtils has a static map used to cache information used to read
and update object properties.
I believe there's another static variable containing a ThreadLocal
related to de-serializing service proxies.
That's it, off the top of my head, but I can't think of where I'd use
any more. Everything else is ultimately rooted in the Registry
instance. It's one of the subtle benefits of using HiveMind over
traditional techniques ... no statics!
On 5/4/05, Dmitry Kozakov <di...@java.crimea.com> wrote:
> Good day.
>
> I have a little question. How much
> HiveMind has static objects?
> I want to write some container (some thing
> like Plexus or Phoenix) based on HiveMind.
> But during code hacking I saw
> * This instance is stored into
> * {@link
> ServiceSerializationHelper#setServiceSerializationSupport(ServiceSerializationSupport)}.
> * This may cause errors (and incorrect behavior) if multiple
> Registries exist in a single JVM.
> in the RegistryInfrastructureImpl.
> My idea was very simple to rewrite RegistryInfrastructureImpl which will
> delegate search and get
> methods to the parent if it cannot do itself.
> Can I do this (I do not keep in mind startUp service and
> ShutdownCoordinator)
> or there are no any guarantees that Registry will not be corrupted. I
> wrote some tests for hierarchy
> they are worked but I am newbie in the HiveMind and I am not sure that I
> included all
> possibilties
>
> Best Regards
> Dmitry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Registry hierarchies
Posted by Dmitry Kozakov <di...@java.crimea.com>.
HM 1.1alpha3
James Carman wrote:
>What version of the code are you using? I think the multiple registries bug
>has been fixed in HM 1.1.
>
>-----Original Message-----
>From: Dmitry Kozakov [mailto:dima@java.crimea.com]
>Sent: Wednesday, May 04, 2005 12:16 PM
>To: hivemind-user@jakarta.apache.org
>Subject: Registry hierarchies
>
>
>Good day.
>
>I have a little question. How much
>HiveMind has static objects?
>I want to write some container (some thing
>like Plexus or Phoenix) based on HiveMind.
>But during code hacking I saw
> * This instance is stored into
> * {@link
>ServiceSerializationHelper#setServiceSerializationSupport(ServiceSerializati
>onSupport)}.
> * This may cause errors (and incorrect behavior) if multiple
>Registries exist in a single JVM.
>in the RegistryInfrastructureImpl.
>My idea was very simple to rewrite RegistryInfrastructureImpl which will
>delegate search and get
>methods to the parent if it cannot do itself.
>Can I do this (I do not keep in mind startUp service and
>ShutdownCoordinator)
>or there are no any guarantees that Registry will not be corrupted. I
>wrote some tests for hierarchy
>they are worked but I am newbie in the HiveMind and I am not sure that I
>included all
>possibilties
>
>Best Regards
> Dmitry
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
>
--
Best Regards,
Dmitry
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
RE: Registry hierarchies
Posted by James Carman <ja...@carmanconsulting.com>.
What version of the code are you using? I think the multiple registries bug
has been fixed in HM 1.1.
-----Original Message-----
From: Dmitry Kozakov [mailto:dima@java.crimea.com]
Sent: Wednesday, May 04, 2005 12:16 PM
To: hivemind-user@jakarta.apache.org
Subject: Registry hierarchies
Good day.
I have a little question. How much
HiveMind has static objects?
I want to write some container (some thing
like Plexus or Phoenix) based on HiveMind.
But during code hacking I saw
* This instance is stored into
* {@link
ServiceSerializationHelper#setServiceSerializationSupport(ServiceSerializati
onSupport)}.
* This may cause errors (and incorrect behavior) if multiple
Registries exist in a single JVM.
in the RegistryInfrastructureImpl.
My idea was very simple to rewrite RegistryInfrastructureImpl which will
delegate search and get
methods to the parent if it cannot do itself.
Can I do this (I do not keep in mind startUp service and
ShutdownCoordinator)
or there are no any guarantees that Registry will not be corrupted. I
wrote some tests for hierarchy
they are worked but I am newbie in the HiveMind and I am not sure that I
included all
possibilties
Best Regards
Dmitry
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org