Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
I agree to the Terms and Privacy Policy

Java Lambda Syntax Alternatives

The discussion on the lambda-dev mailing list has started to address the issue of what the Java language syntax for lambdas / function literals ought to look like. Let’s look at a slightly non-trivial example and try to tease the issues out. The Perl people have a nice example of something which uses function references in a somewhat functional way ...

Read More »

Apache CXF Load Balancing And Failover

A while ago we’ve faced the requirement of load-balancing web services clients based on Apache CXF. Also the clients should automatically fail-over when some of the servers are down. To make it even worse, the list of servers target addresses was to be obtained from external service and updated at runtime. Eventually we ended up with home-grown load-balancing micro-library (ESB/UDDI/WS-Addressing ...

Read More »

Hacking Jasper to Get Object Model of a JSP Page

java-interview-questions-answers

To perform some checks and statistical analysis on my JSPs I needed a DOM-like, hierarchical model of elements contained in them. But parsing JSP pages isn’t trivial and is best left to a tool that excels in it – the Jasper JSP compiler used by Tomcat, Jetty, GlassFish and likely also by all others. There is an easy way to ...

Read More »

Grow Up Java! Proposing Java Desktop Edition

No, this is not another ‘Java is Dead’ rant. Java is very much alive and kicking. It is one of the best development and runtime platform available. By far the most stable platform of those. And that might just be its biggest bane. Ridiculous! How is stability a bane? You might ask. Well, you can see the slow progress in ...

Read More »

SpringMVC 3 Tiles 2.2.2 Integration Tutorial

spring-interview-questions-answers

Apache Tiles is a popular and mostly used templating framework for java based web application. Tiles became more popular because Struts 1.x uses Tiles as its default templating framework. SpringMVC which is an MVC framework, like Struts, also supports integration of Tiles as its templating framework. Let us see how we can integrate SpringMVC and Tiles. You can download Tiles binaries from ...

Read More »

Zero-downtime Deployment (and Rollback) in Tomcat; a walkthrough and a checklist

Dear All, If you thought Tomcat could not get any better, you thought wrong. Tomcat 7 introduces what is called Parallel Deployment. This was contributed by SpringSource/VMWare. Simply put, parallel deployment is the ability to deploy more than one version of your web application in parallel, making all versions available under the exact same URL. Think about this for a ...

Read More »

Poor man’s approach in practice

One day we ran into problem when an application was randomly starting using more CPU resources as usual. It continued picking more and more CPU resources from time to time. Thread dump showed many threads though we couldn’t understand wich of them is problematic…and I remembered about poor man’s profiler and its approach: the stack that’s all we need to! ...

Read More »

Spring, Quartz and JavaMail Integration Tutorial

Quartz is a job scheduling framework which is used to schedule the jobs to be executed on the specified time schedule.JavaMail is an API to send/recieve emails from Java Applications. Spring has integration points to integrate Quartz and JavaMail which makes easy to use those APIs. Lets create a small demo application to show how to integrate Spring + Quartz ...

Read More »