Spring has nice feature called scheduler. Just simply create class and annotate method with @Scheduled(...) annotation and it's all. You have scheduled task, that wil be executed based on your time expression. Example:
Wednesday, 9 January 2013
Wednesday, 19 December 2012
Tomcat remote debugging
You can debug remote server for example from eclipse using JPDA.
Friday, 16 November 2012
Java implement a web service client
Exist two common ways to create webservice client in java it's Axis 2 or JAX-WS. What is the best approach? here is performance comparison, it says that JAX-WS is much better (about twice). Below is the comparison table.
Tuesday, 13 November 2012
Specified VM install not found: type Standard VM, name jre6
Ant saying "Specified VM install not found: type Standard VM, name jre6"!
Solution is to delete the "C:\Users\Sergey\juno\.metadata\.plugins\org.eclipse.debug.core\.launches\projectname build.xml.launch file"
Tuesday, 11 September 2012
Configuring Log4j with Java Web Applications + Tomcat
Log4j - is a Java-based logging utility. Next i will explain hot to configure it with Web App + tomcat.
Saturday, 11 August 2012
JVM Performance Tuning
while(iAmNotSatisfied){
size = defineMinMaxHeapSize();
ratios = tuneGenerationRatios();
alg = selectAppropriateGcAlgorithm();
testApplication(size, ratios, alg);
iAmNotSatisfied = analyzeStatistics();
}
More details later...;)
References:
From Vladislav Gangan Software as Craft presentation
Books:
Java Performance Tuning (2nd Edition)
Pro Java EE 5 Performance Management and Optimization
Java Performance
size = defineMinMaxHeapSize();
ratios = tuneGenerationRatios();
alg = selectAppropriateGcAlgorithm();
testApplication(size, ratios, alg);
iAmNotSatisfied = analyzeStatistics();
}
More details later...;)
References:
From Vladislav Gangan Software as Craft presentation
Books:
Java Performance Tuning (2nd Edition)
Pro Java EE 5 Performance Management and Optimization
Java Performance
Java HotSpot VM Options
Thursday, 9 August 2012
Subscribe to:
Posts (Atom)