Forums de discussion
where can i find liferaydatasource form hibernate-spring.xml
yan paing, modifié il y a 14 années.
where can i find liferaydatasource form hibernate-spring.xml
Regular Member Publications: 128 Date d'inscription: 11/03/10 Publications récentes
Hi everyone,
where can i find
ref="liferayDataSource"
In
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
>
<bean id="liferayHibernateSessionFactory" class="com.liferay.portal.spring.hibernate.PortletHibernateConfiguration">
<property name="dataSource" ref="liferayDataSource" />
</bean>
<bean id="liferaySessionFactory" class="com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl">
<property name="sessionFactoryImplementor" ref="liferayHibernateSessionFactory" />
</bean>
<bean id="liferayTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="dataSource" ref="liferayDataSource" />
<property name="globalRollbackOnParticipationFailure" value="false" />
<property name="sessionFactory" ref="liferayHibernateSessionFactory" />
</bean>
</beans>
[/WEB-INF/classes/META-INF/hibernate-spring.xml]
where can i find
ref="liferayDataSource"
In
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
>
<bean id="liferayHibernateSessionFactory" class="com.liferay.portal.spring.hibernate.PortletHibernateConfiguration">
<property name="dataSource" ref="liferayDataSource" />
</bean>
<bean id="liferaySessionFactory" class="com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl">
<property name="sessionFactoryImplementor" ref="liferayHibernateSessionFactory" />
</bean>
<bean id="liferayTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="dataSource" ref="liferayDataSource" />
<property name="globalRollbackOnParticipationFailure" value="false" />
<property name="sessionFactory" ref="liferayHibernateSessionFactory" />
</bean>
</beans>
[/WEB-INF/classes/META-INF/hibernate-spring.xml]
Sandeep Nair, modifié il y a 14 années.
RE: where can i find liferaydatasource form hibernate-spring.xml
Liferay Legend Publications: 1744 Date d'inscription: 06/11/08 Publications récentes
Please check infrastructure-spring.xml if you are using liferay 5.2.+
Regards,
Sandeep
Regards,
Sandeep