Archive | October, 2007

Spring and Hibernate ORM Framework Integration

October 16, 2007

31 Comments

1) Introduction Hibernate is a powerful technology for persisting data in any kind of Application. Spring, on the other hand is a dependency injection framework that supports IOC. The beauty of Spring is that it can integrates well with most of the prevailing popular technologies. In this article, we will discuss on how it is [...]

email

Apache POI – Reading Excel sheet using Java

October 16, 2007

7 Comments

POI, Apache POI – Java API to access Microsoft format files. POI (Poor Obfuscation Implementation) API is a fantastic way for Java programmers to access Microsoft document formats. The POI project consists of APIs for manipulating various file formats based upon Microsoft’s OLE 2 Compound Document format using pure Java. In short, you can read [...]

Creating Webservice using JBoss and Eclipse Europa

October 12, 2007

1 Comment

This article will introduce you to JBoss Webservice(JAX-WS). Here you will be knowing how to use the annotations and create a web service to deploy in JBoss. Since JBoss comes with JAX-WS jars inbuilt, we will not be adding any jars in addition for this article. This article will also give you a example code [...]

Integrating Spring and JSF

October 11, 2007

8 Comments

1) Introduction This article provides an introduction on how Spring and Java Server Faces Technologies can be integrated. It covers the necessary details of both Spring and JSF Technology in the initial section in the context of Integration. Later on it moves towards the concept of Variable Resolvers which help in easing the integration between [...]

File Upload and Download using Java

October 10, 2007

23 Comments

File Upload and Download is always a handy utility to know. There will be some need to upload a file to an FTP server, Like if you generate a report or store some data in .xls file, then it needs to be uploaded to a FTP server for further use. like wise we need to [...]

Regular Expressions in Java

October 9, 2007

0 Comments

1) Introduction Regular Expressions are basically patterns of characters which are used to perform certain useful operations on the given input. The operations include finding particular text, replacing the text with some other text, or validating the given text. For example, we can use Regular Expression to check whether the user input is valid for [...]

Precise rounding of decimals using Rounding Mode Enumeration

October 9, 2007

0 Comments

The Rounding Mode Enum in java.math package is used to perform precise rounding of decimal values. It was introduced in Java 5.0. This Enum provides various constants each of which is used for different modes of rounding. The decimal value would be rounded off to the number of decimal places based on the scale that [...]

Using the Prototype pattern to clone objects

October 9, 2007

1 Comment

Prototype pattern is one of the creational patterns that concentrate on duplicating objects if needed. Assuming that we are in process of creating a template. Most of the times, we copy an existing template, do some changes in it and then will use it. Technically, we make a copy of the source, make some changes [...]

How to send mail using Java Mail API?

October 9, 2007

48 Comments

The Java Mail API provides support for sending and receiving electronic mail messages. The API provides a plug-in architecture where vendor’s implementation for their own proprietary protocols can be dynamically discovered and used at the run time. Sun provides a reference implementation and its supports the following protocols namely, Internet Mail Access Protocol (IMAP) Simple [...]

Passing arguments and properties from command line

October 9, 2007

0 Comments

Arguments and properties can be passed to a java application from command line. In this techical tip, let us see how to pass arguments as well as properties from command line. Passing arguments from command line The syntax to pass arguments from command line is as follows, 1 2   java <classname> <argument1> <argument2> <argument3> [...]