On Jul 17, 2004, at 12:16 PM, defe wrote:
Glen Ezkovich wrote:
On Jul 17, 2004, at 10:17 AM, Glen Ezkovich wrote:
On Jul 17, 2004, at 3:30 AM, defe wrote:
Glen Ezkovich wrote:
I have a component that I would like to be a singleton. What do I need
to do to insure that it is recognized as such?
implement the marker interface org.apache.avalon.framework.thread.ThreadSafe
How do I declare it in cocoon.xconf?
To be more precise do I declare it as a component or a component-instance? I'm a little unclear concerning the difference.
what kind of component is it? A sitemap component (action, generator, transformer, etc) or something else ?
Something else. Basically, it's a workflow manager. Once a job is submitted a sequence of events need to occur before the job is accepted and completed. The sequence of events may complete in seconds or they may take several days to complete. Most of the time, they will complete in seconds. Rather then read the job from the database and create a new instance of the job several times in this short span they are stored in a Map. The component needs access to a SourceResolver and several DataSources. It needs to be available to several Poolable components.
If it's a sitemap component, then you don't need to declare it cocoon.xconf, otherwise i would say... it depends :)
As always. ;)
Thanks,
Glen Ezkovich HardBop Consulting [EMAIL PROTECTED] http://www.hard-bop.com - new and improved site coming soon
A Proverb for Paranoids:
"If they can get you asking the wrong questions, they don't have to worry about answers."
- Thomas Pynchon Gravity's Rainbow
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
