Patrick Heiden wrote:
Hello together!

Is there any notable difference in asking for Spring-beans inside flow-scripts 
wheter using

cocoon.getComponent("myBean"); // via avalon-bridge!?

or

var appCtx = 
cocoon.context.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
appCtx.getBean("myBean");

??

Yes, there is a difference :) The first one does not use the avalon bridge but uses the context of the current sitemap. This might be a sub context of the root web application context with additional/different beans.

So, getComponent() is still the way to go :)

HTH
Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]

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

Reply via email to