Here's what I am doing. In cocoon.xconf I declare a component
<component class="com.hardBop.workFlow.Processor" logger="hardbop" role="com.hardBop.workFlow.Processor">
<parameter name="datasource" value="hardbop"/>
<parameter name="mail.smtp.host" value="smtp.hard-bop.com"/>
<parameter name="from_address" value="[EMAIL PROTECTED]"/>
</component>
I attempt to access the component in another components initialize method
this.processor = (Processor)this.serviceManager.lookup(Processor.ROLE);
Of course this causes a ClassCastException to be thrown.
I could always implement these classes as plain Java objects but I would really like to take advantage of the built in pooling and SourceResolver.
So my question is, what do I need to do to get an actual instance of my Component.
Any help is greatly appreciated.
Glen Ezkovich HardBop Consulting [EMAIL PROTECTED] http://www.hard-bop.com - new and improved site coming soon
A Proverb for Paranoids:
"If they can get you asking the wrong questions, they don't have to worry about answers."
- Thomas Pynchon Gravity's Rainbow
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
