hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Francois Poilpret" <>
Subject RE: Wicket Integration
Date Wed, 20 Dec 2006 00:45:04 GMT
Hello Joel,

You might consider using HiveMind Utilities' hiveutils module, which
provides one HiveMindRegistryPublishFilter (servlet filter) that works in
combination with HiveMindFilter (it must be chained AFTER HiveMindFilter).
It provides one static method getRegistry() that returns HiveMind's
Although the original need for me was to be able to access the Registry in a
SecurityFilter realm (which is not passed anything but user/password), I
think your situation is a a prefect fit for it too.

Note that hiveutils module has a lot of other things, if you don't need them
please free to get only the HiveMindRegistryPublishFilter class out of it
and include it in your own jars, it has no dependency on anything (except
HiveMind of course!)



-----Original Message-----
From: joeltt [] 
Sent: Wednesday, December 20, 2006 2:58 AM
Subject: Re: Wicket Integration

If I take your last approach, will Hivemind be able to handle thread
clean-up and such if I don't use the HiveMindFilter (that is, I don't set it
up in the web.xml)?

I'm guessing your option to subclass HiveMindFilter is the most correct one,
although I'm vague on where to store the registry into the ServletContext,
and whether the sequence of bootstrapping will work correctly?


Achim Hügen wrote:
> Do you try to implement the IWebApplicationFactory interface
> or what is the place where a Servlet class is passed in?
> You could build a custom version of the HiveMindFilter class
> that stores the registry reference in an attribute of the ServletContext
> instead of the ServletRequest.
> The ServletContext can be retrieved from the Servlet reference then.
> As alternative you could ignore HiveMindFilter, setup the HiveMind
> registry in your implementation of IWebApplicationFactory and then store
> it
> in your application class.
> Achim
> Am Tue, 19 Dec 2006 19:37:00 +0100 schrieb joeltt <>:
>> I'm trying to find out how to integrate Wicket with Hivemind. I'd like to
>> instantiate the Wicket Application class using Hivemind, but to do so  
>> Wicket
>> only passes in the Servlet class not an HttpServletRequest. Is there a  
>> way I
>> can accomplish this?
>> Joel

View this message in context:
Sent from the Hivemind - User mailing list archive at


Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses

View raw message