Leszek Gawron wrote:
> When using a bean defined like this:
> 
>>      <bean name="org.apache.cocoon.generation.Generator/contractors" 
>> class="com.mobilebox.smart.generation.ContractorsGenerator" 
>> scope="prototype">
>>           <property name="contractorService" ref="contractorService"/>
>>           <property name="mobileConfigService" ref="mobileConfigService"/>
>>           <property name="priceListDefinitionDao" 
>> ref="priceListDefinitionDao"/>
>>      </bean>
> 
> I get a NPE while referencing priceListDefinitionDao. Some experiments
> show that I may also do:
> 
> <property name="priceListDefinitionDaoBlahBlah"
> ref="priceListDefinitionDao"/>
> 
> and spring context configured by cocoon also won't notice. Does anyone
> have a clue?
> 
I have tried to create beans without cocoon (just startup the context
standalone). When they are not wrapped with PoolableProxyHandler
dependency injection works fine.

I've been trying to make some sense out of PoolableFactoryBean but the
only place it communicates with beanFactory to create pool target is
'this.beanFactory.getBean( this.name )'. The dependency injection should
work fine here.

Please advise.

-- 
Leszek Gawron                                    CTO at MobileBox Ltd.

Reply via email to