hivemind-user mailing list archives

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

For the time being, you can try to use HiveMindRegistryPublishFilter from
the hiveutils module in HiveMind Utilities project (you can go to URL
http://hivetranse.sourceforge.net 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.

Cheers

	Jean-Francois

-----Original Message-----
From: James Carman [mailto:james@carmanconsulting.com] 
Sent: Friday, September 02, 2005 12:08 AM
To: hivemind-user@jakarta.apache.org; michael@verideon.com
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 [mailto:michael@verideon.com] 
Sent: Thursday, September 01, 2005 1:04 PM
To: hivemind-user@jakarta.apache.org
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:

RegistryBuilder.constructDefaultRegistry();

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?

-Michael



--
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
omissions.


---------------------------------------------------------------------
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




---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message