Hello
i have a question about initializing DataSource. proj's config is liike below.
<bean id="sfwTransactionManagerCO" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager" >
<property name="dataSource" ref="sfwCODataSource" />
<qualifier value="sfwTransactionManagerCO" />
</bean>
<bean id="sfwTransactionManagerLN" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager" >
<property name="dataSource" ref="sfwLNDataSource" />
<qualifier value="sfwTransactionManagerLN" />
</bean>
in project environment, two transaction managers are defined in xml.
but actually, the project is used only one.
but in the project, only one is is used(sfwTransactionManagerCO is autowired in a object). so i think the container should create one transactionManager. but the other is created too.
how to change the way bean is initialized when is autowired in objects ?
i have a question about initializing DataSource. proj's config is liike below.
<bean id="sfwTransactionManagerCO" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager" >
<property name="dataSource" ref="sfwCODataSource" />
<qualifier value="sfwTransactionManagerCO" />
</bean>
<bean id="sfwTransactionManagerLN" class="org.springframework.jdbc.datasource.DataSou rceTransactionManager" >
<property name="dataSource" ref="sfwLNDataSource" />
<qualifier value="sfwTransactionManagerLN" />
</bean>
in project environment, two transaction managers are defined in xml.
but actually, the project is used only one.
but in the project, only one is is used(sfwTransactionManagerCO is autowired in a object). so i think the container should create one transactionManager. but the other is created too.
how to change the way bean is initialized when is autowired in objects ?