Thank you for your suggestions, perhaps any ECM experts out there may be able to further advise me?


From: Niclas Hedhman <[EMAIL PROTECTED]>
Reply-To: "Avalon framework users" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Subject: Re: FW: Using database pool
Date: Wed, 10 Dec 2003 19:22:25 +0800

On Wednesday 10 December 2003 18:57, Tommy Smith wrote:
> Essentially I am trying to implement a listener to log session activity
> within Cocoon.
>
> I am running Tomcat 4.1.18 (Windows 2000)
>
> Within my cocoon/web.xml file I have the following tag
>
> <listener>
> <listener-class>com.tmi.vaisala.MySessionFilter</listener-class>
> </listener>

This is a Tomcat/Servlet feature right?
And you get ECM/Cocoon to initialize the listener as a Avalon component???
What am I missing in this picture?

> Any good or more info. required?

This is then a question for the "Legacy People", i.e. Excalibur Component
Manager (ECM), of which I know nothing.

I suspect the following;

You are not a component and therefor you are in a different classloader
hierarchy than Cocoon's components, and you should probably instead declare
the component in cocoon.xconf something like;

  <component class="com.tmi.vaisala.MySessionFilter"
logger="com.tmi.vaisala.MySessionFilter"
role="com.tmi.vaisala.MySessionFilter">
     <parameter name="some-parameter used" value="whatever"/>
  </component>

And then you should declare a dependency of this component to the
DataSourceComponent (and I have no clue how that is done in ECM, maybe not
necessary).


Sorry, I can't provide more help. Niclas

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


_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger



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



Reply via email to