Home » Java » Enterprise Java (page 341)

Enterprise Java

jqGrid, REST, AJAX and Spring MVC Integration

spring-interview-questions-answers

More than two years back I wrote an article on how two implement elegant CRUD in Struts2. Actually I had to devote two articles on that subject because the topic was so broad. Today I have taken much more lightweight and modern approach with a set of popular and well established frameworks and libraries. Namely, we will use Spring MVC ...

Read More »

OSGi Using Maven with Equinox

I have struggled to understand what OSGi really means for a long time. It has been around since a very long time but not many people are aware of it. It has been hyped as a very complex technology to understand. Here is my attempt to make it simple for any Java developer. In short OSGi is a group of ...

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 »

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 »

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 »

Hadoop: A Soft Introduction

What is Hadoop: Hadoop is a framework written in Java for running applications on large clusters of commodity hardware and incorporates features similar to those of the Google File System and of MapReduce. HDFSis a highly fault-tolerant distributed file system and like Hadoop designed to be deployed on low-cost hardware. It provides high throughput access to application data and is ...

Read More »