Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
cvmbor
Contributor
Contributor

Talend ESB Spring and @Autowired

In a route in the Spring tab I create a bean

<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="myDataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle8iDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<property name="packagesToScan" value="beans"/>
</bean>

In a regular Talend bean I have

@Autowired
private SessionFactory sessionFactory;

It is always null.  What else do I need to do?

Thanks

 

 

 

Labels (2)
1 Reply
Anonymous
Not applicable

Hi,

Have you also imported spring framework and packed all needed libaries? What's talend build version you are using?

Best regards

Sabrina