1、Lifeary Portal的spring的配置文件在 portal-impl/META-INF目录下
事务管理类定义在hibenate-spring.xml
<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>
2、Portal登录验证用户身份
有两个LoginAction,一个为com.liferay.portal.action.LoginAction,另一个为com.liferay.portlet.action.LoginAction,后者完成从登录Portlet验证的过程。
最终的验证通过LoginUtil的静状方法:
public static void login(
HttpServletRequest request, HttpServletResponse response,
String login, String password, boolean rememberMe, String authType)