> This should work, you can get a SessionManager from the
> ComponentManager.
>
> What/how do you exactly try?
public void compose(final ComponentManager componentManager) throws
ComponentException {
this.componentManager = componentManager;
this.sessionManager = (SessionManager)
componentManager.lookup(SessionManager.ROLE);
}
The stacktrace says:
org.apache.avalon.framework.component.ComponentException: Could not find
component
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal
iburComponentManager.java:367)
at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa
nager.java:227)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManag
erProxy.lookup DefaultComponentFactory.java:314)
...
Cheers,
Jan
> -----Original Message-----
> From: Jan Bromberger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: No SesionManager provided for Seleector?
>
>
> I intend to write a SessionContextSelector and tried to use a
SessionManager
> just like the SessionTransformer does. But it seems that there is no
> SessionManager provided to a Selector while a Transformer gets one.
> Am I right?
> Why is that so?
> And: Has anybody a suggestion for a workaround?
>
> Cheers,
> Jan
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>