You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hans-Peter Werner <ha...@e-tecture.com> on 2007/10/24 12:28:30 UTC

Startup Initialization

Hi,

I've got the following problem: we're running cocoon 2.1 on weblogic 8. I need to installs some Mbeans on application startup which
i usually do via servlet-listeners. These Mbeans are later on accessed by cforms pages (rhino). Unfortunately cocoon uses a
different classloader than the rest of the app, so initialization takes place in weblogic context, access in cocoon context. To
solve this problem I would like to initialize my Mbeans from within the cocoon framework by a mechanism similar to the servlet
listeners. How can I achieve this?

Thanks in advance

Hans-Peter Werner


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Startup Initialization

Posted by Ard Schrijvers <a....@hippo.nl>.
> 
> Hi,
> 
> I've got the following problem: we're running cocoon 2.1 on 
> weblogic 8. I need to installs some Mbeans on application 
> startup which i usually do via servlet-listeners. These 
> Mbeans are later on accessed by cforms pages (rhino). 
> Unfortunately cocoon uses a different classloader than the 
> rest of the app, so initialization takes place in weblogic 
> context, access in cocoon context. To solve this problem I 
> would like to initialize my Mbeans from within the cocoon 
> framework by a mechanism similar to the servlet listeners. 
> How can I achieve this?

Don't you just need the Mbeans to be an avalon components? Just look at
the cocoon.xconf for avalon components, and see are they are
initialized. For example the XSLTProcessorImpl in cocoon.xconf, look at
excalibur org.apache.excalibur.xml.xslt.XSLTProcessorImpl how this
avalon component works

Regards Ard

> 
> Thanks in advance
> 
> Hans-Peter Werner
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org