-
Recent Posts
Recent Comments
chendd on Anotation Basic Use 3 GFF on Using XML XSL transformation i… 复飞 on Spring Security (3) Implementa… ali serdar on Validation with Spring MVC Sim… Unknown on Call SQL procedure and functio… Archives
Categories
Meta
Category Archives: Java Utilities
Tips on Java Calendar
Tips on Java Calendar The recent project has got me a great chance to work quite comprehensively to the Java Calendar related stuff. Few things have been found worth of a note. First of all, you have to … Continue reading
Posted in Java Utilities
Leave a comment
Email application Using JNDI with Tomcat and Unit Test
Email application Using JNDI with Tomcat and Unit Test Using JNDI in a tomcat environment came to my job recently. It was not that bad to use it but how to do the unit test before you deploy it … Continue reading
Posted in Java Utilities
Leave a comment
Straight to the Log4j (2)
The following part will help you to find out how to write your logging info into different file. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="console_appender" class="org.apache.log4j.ConsoleAppender"> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> … Continue reading
Posted in Java Utilities
Leave a comment
Simple Lucene Indexing practice
This is very simple practice of Lucene Indexing base on the tutorial written by Thomas Paul. http://www.javaranch.com/journal/2004/04/Lucene.html import java.io.StringWriter; import java.util.Date; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.queryParser.QueryParser; import org.apache.lucene.search.Hits; import org.apache.lucene.search.IndexSearcher; import … Continue reading
Posted in Java Utilities
Leave a comment
Google Web Toolkit (GWT) First Touch
Structure GWT development structure are consisted by four components (inside WEB-INF/src) client – Everything that happens within your user’s web browser is referred to as client-side processing. When you write client-side code that is intended to run in … Continue reading
Posted in Java Utilities
1 Comment
Straight to the Log4j (1)
Installation The current version could be downloaded from http://logging.apache.org/log4j/ If you are using Maven for your project <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.14</version> </dependency> Configuration Log4j looks for a file named log4j.xml and … Continue reading
Posted in Java Utilities
9 Comments