Hello Mike,

 

Not sure it will answer your question, but in HiveMind Utilities (in hiveutils module), I created a second Servlet Filter (named HiveMindRegistryPublishFilter), that is chained immediately after HiveMindFilter and puts the Registry into a ThreadLocal. This Filter has a static method to access the Registry from the ThreadLocal. This avoids storing the Registry itself into a static.

The problem that does not get solved however by this way is the necessary call to cleanupThread() if Quartz starts new Threads (this is left to you).

 

Cheers

 

            Jean-Francois

 


From: mike jones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 5:40 AM
To: [email protected]
Subject: Re: Aquiring Registry throughout Applicatoin (not just Tapestry servlet)

 

Thanks for the reply but its not just related to Quartz or whatever. My problem really is that I dont have a consistent way to access my registry across the entire applicatoin.
Ok for the Tapestry servlet (or whatever I map the it to) I can use the HiveMindFilter, but without access to the request I can't get at that instance of the registry. Is my only option to create a singleton to manage the registry?
I was only wondering why (or if there is where) this is not part of the RegistryBuilder or other class?
cheers
Mike

On 6/6/05, Stanczak Group <[EMAIL PROTECTED]> wrote:

Thinking on it more that should work, because you Quartz will shutdown
with the app, so the filter would shutdown the registry correctly.

mike jones wrote:

> Hi,
> I am using the HiveMindFilter for my tapestry app to manager the
> registry and a store it as the global object, this is all good.
> However I have some SOAP services (using Axis) and am using  Quartz to
> schedule some tasks and these too need to get the registry. What I
> dont want to do really is start up the registry again but share this
> registry around. I could put it as a static propertry on something but
> not too keen on that for obvious reasons, but I cant really think of
> another way to achieve this.
> Any help would be appreciated.
> Cheers
> Mike
>
>
> --
> "If we can hit that bull's-eye, the rest of the dominos will fall like
> a house of cards - Checkmate."


--
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

..________...............__.................
./  _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"If we can hit that bull's-eye, the rest of the dominos will fall like a house of cards - Checkmate."

Reply via email to