Hi Jean-Francois,
very cool. that's it. thanks a lot for pointing me there.
-andi
On Jul 12, 2005, at 1:39 Uhr, Jean-Francois Poilpret wrote:
Hello Andreas,
In HiveMind utilities project, in hiveutils module, I have built a
very
simple ServletFilter (HiveMindRegistryPublishFilter) that does
exactly what
you want.
You just need to declare it in your web.xml AFTER HiveMindFilter.
It has a static method that takes no argument, from which you can
get the
Registry.
Cheers
Jean-Francois
-----Original Message-----
From: Andreas Aderhold [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 12:40 AM
To: [email protected]
Subject: Getting the Registry everywhere, everytime
Hi,
I'm pretty new to HiveMind and setup a some services today (basically
following the article on tss) using hibernate + interceptors. I like
it very much, it's simple and easy. Everything works fine on
commandline. Now i want to access the services from a web-framework
and registered the filter provided by hivemind in the web.xml. so far
so good.
but how do i obtain the registry from inside my webapp?
in spring i could just get the application context by a static
lookup. i found nothing similar in HiveMind. Using RegistryBuilder is
way to expensive (builds up everything on each request, uahh). I only
need the registry build exactly one time (at deploy) and shutdown on
un-deploy.
I excpected to find something static like HiveMind.getRegistry() to
obtain a reference to the built up registry or even
HiveMind.getService(..). But i can't find anything like that. I know
that the filter puts the registry on the request context, but I don't
have access to it.
hints or directions where to look?
thanks
andi
PS: why did SDL have to go?? i find it much more readable than xml :/
any chance for a comeback?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]