Hello

Can anybody explain me why it seems that org.jencks.JCAContainer forces 
initialization of non-singleton and lazy-init beans in ApplicationContext? 
Maybe I'm missing something but when I declare a sample bean:


<bean id="Container" class="org.jencks.JCAContainer">
        <property name="bootstrapContext">
                <bean class="org.jencks.factory.BootstrapContextFactoryBean">
                        <property name="threadPoolSize" value="25" />
                </bean>
         </property>

        <property name="resourceAdapter">
                <bean id="activeMQResourceAdapter" 
class="org.activemq.ra.ActiveMQResourceAdapter">
                        <property name="serverUrl" 
value="tcp://localhost:61616"/>
                </bean>
        </property>
</bean>


then all my lazy-init singletons and non-singleton beans are created - even if 
they are not a dependency of any other bean!
I'm a bit confused and appreciate any help.

I'm using Spring 1.2.3, ActiveMQ 3.1 and Jencks 1.0.

Regards
Bartek

Reply via email to