原创 詳解Spring事務屬性
轉自 http://www.javaeye.com/topic/78674 Spring聲明式事務讓我們從複雜的事務處理中得到解脫。使得我們再也無需要去處理獲得連接、關閉連接、事務提交和回滾等這些操作。再也無需要我們在與事務相關的方法中處
原创 Spring v3.0.2 Learning Note 10 - Annotation-based Transaction Management
基於註解的事務管理 配置數據源: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"
原创 Logging and Spring AOP
Problem Normally, we log down the values of parameters of a method and the value of return of a method. For example,
原创 Spring v3.0.2 Learning Note 15 - Use Velocity Email Template with Spring
go on with Learning Note 14 - Send Email With Spring Reference Library need add the following reference library files
原创 Spring v3.0.2 Learning Note 12 - Integrate with Hiberate
與hibernate的集成 環境 Spring v3.0.2 Hibernate V3.3.1 MySql v5.0.22 JDK 1.6.x 數據庫腳本: drop database if exists `springlearn`
原创 replicate session in clustering weblogic v10.3
Even set 2 weblogic instances as clustering servers, the session can not be replicated by default. let's we have the c
原创 Hibernate Tools with Eclipse
>>> install hibernate tools in eclipse > select eclipse menu 'Help' - 'Install New Software...' to open a dialog and
原创 reset admin password for weblogic v10.3
scenario 1, sometimes we might forget the admin console password. scenario 2, we want to skip to key in username/passwo
原创 Config log4j to print SOAP content with AXIS2
log4j.rootLogger=debug # set to false to turn off log4j debug statements log4j.debug=true # Turns off logging in log4j
原创 Spring v3.0.2 Learning Note 16 - Integrate With Hessian
Reference Library %SPRING%/dist/com.springsource.org.aopalliance-1.0.0.jar%SPRING%/dist/org.springframework.aop-3.0.2
原创 Spring v3.0.2 Learning Note 9 - Classpath Scanning
在classpath自動掃描將組件納入容器管理 前面的例子都是使用xml的bean定義來配置組件,即便使用了@Resource或者@Autowired的方式減少了一部分bean的定義,但是在一個稍大的項目中,通常還是會有幾十甚至數百個
原创 Install liferay framework and integrate with MySql or other database
I am asked to learn liferay,which is an open source portal framework, to make a demo as soon as possible. Unluckily, I
原创 Spring v3.0.2 Learning Note 13 - AOP Example
命名空間的支持 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins
原创 Spring v3.0.2 Learning Note 7 - Constructor-based dependency injection
基於構造器的注入方式 package com.spring.test.dao; public class PersonDao { public void add() { System.out.println("
原创 Custom redirect after login liferay
I assume you installed liferay portal v5.2.3 Bundled with Tomcat 5.5 by this way http://blog.csdn.net/wxhawk/archive/2