• Abhijit Ghosh Abhijit Ghosh Posted 55 Articles A java/j2ee developer. Love to share learning experiences on different technologies/frameworks.
    Find me on Facebook Twitter LinkedIn www

Spring Mobile Hello World Example that includes DeviceResolver, SitePreference, urlPath SiteSwitcher and LiteDeviceDelegatingViewResolver

46,686 views
By Abhijit Ghosh on Feb 17, 2013 7:56:17 AM

Spring Mobile is an extension to Spring MVC for development of mobile web applications. The Spring Mobile Device module provides a feature (DeviceResolver / LiteDeviceResolver) to detect devices like mobile and tablet in the server side.
Device aware view management is very useful specially when it is required to serve different optimized versions of same website based on request generating device type or specific devices.
Another feature called site preference management allows user to set his / her preference (SitePreference) to view a particular site in either "normal", "mobile" or "tablet" mode from a particular device.
Spring mobile also provides different types of site switchers (like mDot, dotMobi and urlPath SiteSwitcher) which automatically redirect users to the device specific site based on the device generating the request and site preference set by the user.

Tags:

Spring 3 MVC Framework Based Hello World Web Application Example Using Maven, Eclipse IDE And Tomcat Server

67,856 views
By Abhijit Ghosh on Jan 8, 2013 4:16:34 AM

In this post, we'll see how to get started with a Spring Web model-view-controller (MVC) framework based Hello World web application in few steps. Here, we have used m2e-wtp (Maven Integration for Eclipse WTP) to generate a web project, Eclipse IDE to develop the code and Tomcat Server 7 to deploy and run the web application which will print 'Hello World!' in the browser.

Tags:

Build Android application package file (APK) using Eclipse IDE and Android Developer Tools (ADT) Plugin

183,858 views
By Abhijit Ghosh on Dec 15, 2012 2:04:26 PM

Android application package file (APK) is program binary used to distribute and install Android application onto the Android operating system. Here we'll see step by step procedure of creating .apk file ready to be installed in Android device.

Tags:

Android Hello World Example using Eclipse IDE and Android Developer Tools (ADT) Plugin

87,863 views
By Abhijit Ghosh on Dec 7, 2012 3:17:37 PM

This tutorial will help you to write your first Android 'Hello World!' program. Here, we'll use Eclipse IDE with Android Developer Tools (ADT) plugin to build the application and Android Emulator - Android Virtual Device (AVD) to run the application which will draw 'Hello World!' text on the screen.

Tags:

Logback using SLF4J Hello World Example

77,204 views
By Abhijit Ghosh on Nov 21, 2012 11:40:00 AM

Logback is an increasingly popular logging framework intended as a successor to the popular log4j project. It is designed by the founder of log4j. Logback offers many advantages over log4j like faster, smaller memory footprint, automatic reloading of configuration files, automatic compression of archived log files, conditional processing of configuration files and many more. For more details go through the following link Reasons to prefer logback over log4j.

This tutorial describes how to configure SLF4J and Logback as logging solution of an application.

Tags:

Java File and Directory operations made easy in JDK 7

14,607 views
By Abhijit Ghosh on Nov 7, 2012 11:32:05 AM

Here we'll see two examples - Copy operation & Traversing a file tree. If you have already worked using JDk 6 or earlier versions then you can see how easy it is to use JDK 7's nio package. And you need to write less code to implement the same.

Tags:

org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available

21,867 views
By Abhijit Ghosh on Nov 1, 2012 8:15:36 AM

Spring AOP uses either JDK dynamic proxies or CGLIB to create the proxy for a given target object. If the target object to be proxied, does not implement any interfaces then a CGLIB proxy will be created. In this situation if CGLIB is not present in the classpath following exception will be thrown

org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.

Tags:

Send logs by Email Notification using Apache log4j SMTPAppender

49,480 views
By Abhijit Ghosh on Oct 11, 2012 2:46:33 AM

It is always better to get notified as soon as any major issues / exceptions occurred in the Application, instead of manually going thorugh huge logs to find probable exception messages. Apache log4j provides out of the box log Appender (called SMTPAppender) to send email alerts for the log level configured in log4j configuration file.

Tags:

Deploy to AppFog PaaS using Cloud Foundry Integration plugin of Eclipse / STS

16,433 views
By Abhijit Ghosh on Oct 1, 2012 2:25:29 AM

AppFog Cloud Platform is built by using the Cloud Foundry OSS bits alongside its own set of custom extensions and enhancements. AppFog provides good command line tool to deploy application but we can configure Cloud Foundry Integration plugin of Eclipse / Spring Tool Suite (STS) to deploy web application directly from IDE to the AppFog.

Tags:

Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework

58,820 views
By Abhijit Ghosh on Sep 26, 2012 1:30:13 PM

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This tutorial describes how to configure SLF4J with log4j as underlying logging framework.

Tags:

About this 'Hello World' site

This site is mainly developed to share coding and technology learning experiences on java / j2ee based technologies.

Simple tutorials / codes have been shared to learn a new technology. Full source code is also available for download.