Webcam Chat QuickBooks Advice international calling cards international phone cards
JavaBeat Certifications Certifications Kits Articles Tutorials Tips QNA Book Store Interview Questions SCJP 1.5 SCJP 1.6 SCWCD 5.0 SCBCD 5.0 SCEA SCJA Feeds
Kaspersky Anti-Virus 2011
Christy's Profile
Christy is working as a Software Professional in Bangalore. She has more than 3 years of experience in Java/J2EE technologies. She has the passion to learn the latest technologies and thereby enhance her technical expertise. Her hobbies include writing poems, reading novels, knitting and cooking.
Christy's Articles
Testing Support in Spring Framework
Testing is a vital phase in any software application and software cannot be complete if it is not completely tested. Unit Testing allows individual software components to be tested completey whereas Integration Testing ensures that multiple components in a system works fine. In this article, we will see the support given by Spring framework towards Unit and Integrating Testing. The first section of the article deals with the support given by Spring towards Unit Testing, especially the mock interfaces and the classes. Also discussed in this article are the various supportive and utility classes for Integration. The final section of the article discusses the various annotations available in Spring that facilitate testing.
Transaction Management in Spring Framework
Transaction management is critical in any form of applications that will interact with the database. The application has to ensure that the data is consistent and the integrity of the data is maintained. There are many popular data frameworks like JDBC, JPA, Hibernate etc.. and Spring Framework provides a seamless way of integrating with these frameworks. In this article, we will see how Spring Framework leverages the transaction management capabilities with a plenty of examples. This article covers Programmatic as well as Declarative way of managing transactions. The final section of the article is about achieving transaction management through annotations and AOP. The readers of this article are assumed to have a basic understanding on core Spring Framework. If you don't have the basic knowledge on the Spring Framework, please read the articles listed in the following section.
Spring and JMX Integration
In this article we will see how to integrate JMX with Spring. This article assumes that the reader has a basic understanding on Spring and JMX. We will initially explore a sample on JMX written without the support of Spring, then will learn the dis-advantages in using so. Later we will see how to use Spring's features and support related to JMX with and without annotations. We will dedicate the final section of the article in looking into the various remoting options available in Spring for JMX clients.
Introduction to Spring JDBC Framework
In this article, we will see how to interact with the database through JDBC APIs using Spring's framework. Spring's JDBC framework integration simplifies the task of resource management like closing connection, statement, resultset etc, complex exception handling, providing reusable object oriented access towards database operations.
How to send EMail using Spring Framework?
In this article, we will see how to use Spring's capability for sending email. The first section of the article deals with sending plain text email content with the help of Spring's Mail Sender and Mail message classes with the help of a sample application. The latter half of the article deals with sending email with rich text contents like formatted html, inline contents and attachments. The reader of the article is assumed to have basic knowledge on Core Spring with concepts like Dependency Injection and Inversion of Control as the sample applications heavily uses these concepts through configuration files.
Christy's Tips
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 to know the supported features and other related information. Java provides an interface called DatabaseMetaData to achieve this.
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 us see a simple example,
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 executing.
Precise rounding of decimals using Rounding Mode Enumeration
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 is defined for the decimal value.
Using the Prototype pattern to clone objects
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.
List of Authors
Christy
Raja
SriHari
AnupFrancis
DeepakKumarSharma
VidyaSagar
MarceloGiorgi
PacktPub
VaniShanmugam
JesinthaPriyadarshini
AmitSharma
PranavAggarwal
Shenbagaraj
Arjunan
NissiNath
TusharJoshi
Ramaswamy
Tata-McGrawHill
NileshPagar
JavaBeat
MunafSahaf
KannanRaghupathy

JavaBeat Website (2004-2009), India
javabeat | advertise | about us | useful resources
Copyright (2004 - 2009), JavaBeat