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]