hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Francois Poilpret" <>
Subject RE: How to construct registry for web service
Date Thu, 01 Sep 2005 17:24:44 GMT

For the time being, you can try to use HiveMindRegistryPublishFilter from
the hiveutils module in HiveMind Utilities project (you can go to URL for more info).
You just have to put this Filter right after HiveMindFilter, then call its
getRegistry() static method to obtain the registry that was constructed by
HiveMindFilter. That filter uses a ThreadLocal to store the Registry.



-----Original Message-----
From: James Carman [] 
Sent: Friday, September 02, 2005 12:08 AM
Subject: RE: How to construct registry for web service

There should be (and maybe soon will be) a ThreadLocalRegistry class (or
whatever you want to call it) in HiveMind which holds a reference to a
registry to be used by the currently executing thread.  HiveMindFilter
should be retrofitted to use this class. 

-----Original Message-----
From: Michael Mattox [] 
Sent: Thursday, September 01, 2005 1:04 PM
Subject: How to construct registry for web service

I'm using the hivemind servlet filter for my webapp which works great. 
I'm curious how I can use it for my web service.  For now I'm working on a
small webapp that has both a webapp and a web service in the same webapp. 
If I use:


then will I destroy the registry created by the filter?

Another idea I had was to create a static class with a static method
getRegistry.  A servlet could get the registry from the servlet filter and
set it on the static class, so then the web service would just get the
registry from the static class.  This seems like a lot of work though just
to get the registry.  Is there a better way?


This E-mail is confidential.  It may also be legally privileged.  If you are
not the addressee you may not copy, forward, disclose or use any part of it.
If you have received this message in error, please delete it and all copies
from your system and notify the sender immediately by return E-mail.
Internet communications cannot be guaranteed to be timely, secure, error or
virus-free.  The sender does not accept liability for any errors or

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message