Life Cycle Management of a Spring Bean


1) Introduction This article would brief about how a Spring Bean is managed in IOC (Inversion of Control) Container. Spring Beans exist within the Container as long as they are needed by the Application. There are various life-cycle interfaces and methods that will be called by the IOC Container. The pre-requisite for this article is […]

Knowing about your Database


We use the Jdbc APIs for accessing the data from the database system. However, the different databases from different vendors will vary a lot in their underlying model and functionalities. For example, a feature supported in one database might not be supported in another database. So, even before working with a database, it is important […]

Customizing Dragging and Dropping for Swing Components


Swing’s Drop and Drop API can be used for customizing Drag and Drop support. For most of the commonly used components like Text Components, Color Chooser, File Chooser etc, the dropping support is enabled by default. We have to explicitly enable the dragging support by calling the setDragEnabled() method. Before getting into customizing them, let […]

Locking Files using Java


File Locking can be achieved in java by making use of the New I/O API (nio). Before the advent of New I/O API, there was no direct support in Java for locking a file. It is important to understand that File locking is hugely dependent on the native operating system on which the program is […]

How to use EJB with Spring framework?


1) Introduction Enterprise Java Beans (EJB) can be used extensively in Spring’s environment. In this article, we will know about the transparent support available in Spring for using the Stateless and the Stateful Session Beans in Spring.The pre-requisite for this article is some basic knowledge in Spring which can be got by reading the article […]

Accessing objects in JNDI using Spring


1) Introduction Spring provides support to access objects from the JNDI Repository. This article will begin with the JNDI concepts along with a sample JNDI Application. Then it will proceed with the various core supporting classes available in Spring for JNDI Integration. Following that, practical samples would be given to make things clear. The pre-requisite […]

Spring and Groovy Integration


1) Introduction Spring makes it easier to provide integration support for scripting languages. The currently supported scripting languages are Groovy, JRuby and BeanShell. However, this article concentrates only on Spring’s support for the Groovy language. Plenty of code samples are given in each section for much clarity. The article assumes that the reader is comfortable […]

J2ME User Interface


1) Introduction User-interface requirements for small handheld devices are different from personal computers. Because comparatively the display size of handheld devices is smaller. That’s why, we cannot follow the personal computers user-interface programming guidelines for handheld devices. In J2ME,the CLDC itself does not define any GUI functionality. The official GUI classes for the J2ME are […]

Introduction to DOM4J


dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP. dom4j is a highly flexible, high-performance, and memory-efficient implementations of this XML framework. dom4j can ease the hardships of XML-based Java application development. We […]

JMX support in Spring Framework


This article would focus on how Spring provides support for integration with JMX. JMX stands for Java Management Extensions and it is an API from Sun which can be used to manage as well as monitor any kind of Java resource. This article doesn’t aim to provide an in-depth coverage in JMX, however it provides […]