原创 Spring config different datasource based on different environment(dev, test, prod) Two ways now
Spring is very powerful when I use Spring more and more, it provides a lot
原创 RESTeasy to make a REST Call
Previously I wrote an article to use Jersey to make a REST call. Afterwards, we changed to use RESTeasy to do that. The
原创 Windows 7 Task Scheduler Start a Program
I need to set up a Task Scheduler to run my batch job. Here is the steps which described onWindows website: Open Task
原创 See how Google celebrates my birthday
It did surprise me today! Google customize the image for celebrating my Birthday! Haha...
原创 Java JDBC Performance vs. iBatis vs. Hibernate
http://phillips4jc.blogspot.com/2011/03/java-jdbc-performance-vs-ibatis.html http://arxiv.org/ftp/arxiv/papers/0710/07
原创 Export table data sql scrpit on sql server 2008
Since this is my first time working on sql server, I didn't know how to export data. Previously, I was silly to write t
原创 Config log4j in standalone app
1. First make sure you've added the log4j.jar 2. config log4j.xml and log4j.properties Show an example: log4j.xml <?xml
原创 Liferay hook works with external customized jar which is built by Spring
I ran into the issue when I was customizing organization in Liferay. My organization hook needs to connect with externa
原创 Make IDE(Eclipse) not overwrite our configured server setting
This is because of the default setting of IDE. By default, it overwrites every thing we configured when we restart the
原创 Customize Liferay SDK plugins(portlet) to Maven project
In our case, we use maven portlet instead of default ant portlet, every time we need to modify. What I do is to create
原创 JSP "items" does not support runtime expressions
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <c:forEach var="datatables" items="${ds}"> <tr>
原创 Eclipse or IDE integrated with Eclipse .project and .classpath files
Recently, I got a very interesting task. In our daily work, we use Liferay, Liferay uses Ant to create projects. All pr
原创 Java Iterate directory to find files and edit
After mannually modified about 100 pages, I'm tired of doing that. So it's
原创 Developing portlets using Spring Portlet MVC and Liferay ServiceBuilder
A good blog links to Liferay and Spring http://xebee.xebia.in/2011/09/04/developing-portlets-using-spring-portlet-mvc-a
原创 Read properties file in a jar
When I set the path of properties file, it's OK when we run in IDE. When I packed it in a jar and tried to run that, it