Monday, September 9, 2013

Spring Book - Chapter 22 - Spring Integration

Spring Book - Chapter 22 - Spring Integration

Chapter 22, “Spring Integration”, will help you start with Spring Integration and will aid you in achieving the various integration requirement in your application. I am sure after reading through this Chapter you will have one more weapon up your sleeves which you can use and reap benefits from its high level of integration capabilities.

Thursday, August 29, 2013

Spring Framework Vs. JEE - Part I

Spring Framework Vs. JEE - Part I
Basic comparison between Spring Framework Vs. JEE and why we chose one over the another in our organization.

Saturday, August 24, 2013

Spring Book - Chapter 20 - Tasks and Scheduling

Spring Book - Chapter 20 - Tasks and Scheduling

Chapter 20, “Tasks and Scheduling”, initially looks into the various concepts dealing with concurrency and then looks into Java support for doing this. Later on it looks into how Spring Framework can support doing this in your application. You should also be able to configure and use Quartz in your Spring application as well have the capability of using JDK’s timer support in your application.

Spring Professional Certification Exam

Spring Professional Certification Exam

Monday, August 19, 2013

Web Service Framework Comparison - 2013 - Part II

Web Service Framework Comparison - 2013 - Part II

Second part of my blog post in which i try to compare the three most prominent web service frameworks available in the industry as of now (2013).

Tuesday, August 13, 2013

Sunday, August 11, 2013

Spring Book - Chapter 19 - Remoting

Spring Book - Chapter 19 - Remoting

Chapter 19, “Remoting”, we will first go through the basic concepts in remoting and then go on to the support provided by Spring. We will then go on in detail to cover the various remoting technologies which Spring supports in detail.

Thursday, August 8, 2013

Spring Book - Chapter 15 - Web Application Security with Spring

Spring Book - Chapter 15 - Web Application Security with Spring

Chapter 15, “Web Application Security with Spring”, covers the most important aspect of any enterprise application, security. It covers Spring Security in detail with respect to web application security.

Tuesday, August 6, 2013

Spring Book - Chapter 16 - Web Services – Spring WS

Spring Book - Chapter 16 - Web Services – Spring WS

Chapter 16, “Web Services – Spring WS”, introduces you to the Spring’s capability of supporting web services in your application. After reading through this Chapter, you will have clear idea of all the terminologies related to web services and will also have a clear idea of the support provided by Spring to create and use web services in your application.

Monday, August 5, 2013

Spring Book - Part IV - Enterprise Application Development

Spring Book - Part IV - Enterprise Application Development

This part of the book contains Chapters which will help you in developing enterprise application having all the required enterprise services helping you realize business use case with the help of Spring Framework.

Saturday, August 3, 2013

Technology stack for a web application (2013) – Part II

Technology stack for a web application (2013) – Part II

In the year 2013, i recommend using following technologies/framework in your web application. The reasons for choosing these will be shared in this blog post.

Friday, August 2, 2013

Technology stack for a web application (2013) – Part I

Technology stack for a web application (2013) – Part I

In the year 2013, i recommend using following technologies/framework in your web application. The reasons for choosing these will be shared in Part II.

Wednesday, July 31, 2013

Spring Book - Chapter 13 - Spring and JSF Integration

Spring Book - Chapter 13 - Spring and JSF Integration

Chapter 13, “Spring and JSF Integration”, similar to Chapter 12, looks at integrating Spring Framework with another famous MVC framework Java Server Faces (JSF) in detail.

Friday, July 26, 2013

Spring Book - Chapter 12 - Spring and Struts Integration

Spring Book - Chapter 12 - Spring and Struts Integration

Chapter 12, “Spring and Struts Integration”, purely looks into the integration of Spring Framework with the famous MVC framework, Struts in detail.

Sunday, July 21, 2013

Spring Book - Chapter 11 - Spring Web

Spring Book - Chapter 11 - Spring Web

Chapter 11, “Spring Web”, introduces you to the Spring web stack as a whole. It introduces you to various components in the Spring web stack and also covers some basics around Spring web and other web technology facts like MVC framework and so forth.

Saturday, July 20, 2013

Spring Book - Chapter 10 - Caching

Spring Book - Chapter 10 - Caching

In Chapter 10, “Caching”, I will be explaining the various caching mechanisms that you can use in your applications and Spring’s support to do this integration with ease.

Thursday, July 11, 2013

Spring Book - Chapter 8 - Data Access

One of the very important aspect in any enterprise application is the ability to get data in and out of your application with ease. Thinking on the same lines, Spring framework provides extensive support for data access. In this Chapter we will first explore the various data access technologies and then see the support provided by Spring for using these technologies in your application.
Spring effectively makes data access easier by managing the various resource for you, by providing abstraction and easy API helpers and by supporting all major data access technologies available in the industry so that you don’t have to get yourself bogged down to a particular technology. Going along with the Spring philosophy it lets your Spring application integrate to any data access technology with ease.
In this Chapter we will see the support given the Spring framework in interacting between data access layer and the service layer in your application. Spring compressive support for transaction management will be covered briefly as we have dedicated Chapter 9 for this specific topic. In this chapter we will also be covering various data access frameworks and technologies which the Spring framework integrates with almost ease.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.

Chapter 8: Data Access



Spring Book - Chapter 7 - Testing

Testing is an integral part of enterprise software development. It is one of the most important phases of the Software Development Lifecycle (SDLC) and has gained more importance in last decade or so. Having said that, there are many constraints either from framework level or project level, which makes testing effort in a project more challenging and time consuming. In this chapter we will first touch upon the importance of testing and see what are the various testing techniques employed in a typical application. Along the way we will see the problems imposed by various frameworks in achieving full test coverage.
After that we will see, how the Spring framework supports you in making your application more testable.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.

Chapter 7: Testing



Spring Book - Chapter 6 - Enterprise Integration

Spring’s core support includes its capability of configuring application, enterprise integration, its testing capabilities and data access methodologies. In Chapter 4, I introduced you to various configuration styles available in Spring. In Chapter 5, I continued on to explain the various simplifications that you can do in your application. In this Chapter I will be covering enterprise integration which is one of the core support provided by the spring framework in detail.
I always like to call an application enterprise. For an application to be called enterprise, it needs to have enterprise components/objects on which it is built. I call an object enterprise when it has capability to handle transactions, capable of existing in a secured environment, has capability to integrate with other system, and so forth.
Using Spring framework, you can make simple POJOs getting transformed into what I call as enterprise objects, with minimal involvement of developers. Developers spend more time writing the actual business logic and the Spring container does all the magic behind the scenes.
Spring framework provides comprehensive infrastructural support for what we call an enterprise application. One such important component in any enterprise application is its capability to integrate. Spring handles plumbing involved in integrating various components in an enterprise application so that you can focus on actual business logic/business use case. Integrating enterprise application can be done in many ways. Each way has its own advantages and disadvantages. We will be discussing the various enterprise integration styles available in some detail in subsequent sections and will also cover the support rendered by Spring to achieve these integration styles in your enterprise application.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.

Chapter 6: Enterprise Integration



Spring Book - Chapter 5 - Application Configuration – Simplified

As we saw in Chapter 4, Spring provides three ways of configuring the container: XML, annotations, and last but not the least, Java configuration. The fact is, both XML and annotations have valid pros and cons. I am not saying that Java configuration is the answer to all the cons of both XML and annotations. I have given detailed pros and cons of each configuration styles in Chapter 4.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.


Chapter 5: Application Configuration – Simplified



Spring Book - Chapter 4 - Configuration Styles

In this Chapter, I will be explaining the various types of configuration styles that are available in Spring Framework to achieve Dependency Injection (DI). I will explain in detail the various configuration styles with working sample codes for clear understanding of each configuration styles. I will then give some best practices which can be followed to make your code maintainable and ways to avoid confusions and frustration to the developers as the application grows in size over a period of time.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.


Chapter 4: Configuration Styles



Spring Book - Chapter 3 - Spring Quick Start

In this chapter, we’ll see how Spring works and review its working principles. We’ll take a detailed look at bean definitions, accessing bean instances, and various bean scopes available in Spring Framework. The chapter also goes into detail about the Application Context lifecycle, with deep dives into the various phases of the lifecycle so that you understand the crux of Spring. Finally, because Dependency Injection is a very important concept in Spring, reducing code maintenance as well as increasing developer productivity, we provide a comprehensive discussion of this subject.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.


Chapter 3: Spring Quick Start



Spring Book - Part II - Core Support by Spring

Any enterprise application is typically made of multiple components working in tandem to realize a business case. Usually the objects communicate with each other in some form to achieve this in an application. Achieving component interaction can be cumbersome and difficult to implement in any application. Even if it is considered easy to do, it might become very hard to replace a component with other component due to challenging business scenarios. Spring Framework does this sort of component interaction which can be seamlessly changed with changing scenarios efficiently and easily.
Part 2 builds on what you learned in Part 1 by delving into greater detail on Spring and its various features. Part 2 also focuses on the main goals and objectives that the Spring Framework addresses in an enterprise application. It’s quite a big part which spans eight Chapters in whole and gives the various core supports which the Spring framework provides, so that you can achieve these capabilities with ease while developing your application.
In Chapter 3, “Spring Quick Start,” I will explain how Spring works and is the basic principles it is based on. We’ll take a detailed look at bean definitions, accessing bean instance and various bean scopes available in the Spring Framework. We’ll also dig into Dependency Injection, the ApplicationContext class, and the ApplicationContext Lifecycle. We’ll do a deep dive into the various phases of the lifecycle so that you can get a solid understanding of the crux of the Spring Framework.
In Chapter 4 “Configuration Styles”, I will be explaining the various configuration styles that you can use in your Spring applications. On the way I will be giving brief explanation on the various annotations that you could use and finally gives a gives idea on the best practices for using various configuration styles in your application.
In Chapter 5, “Application Configuration - Simplified”, I will be giving some ideas as to how you can use he various simplification methods whereby you can reduce the configuration in your Spring application. I will also give you best practices that you can follow in some details with code samples.
In Chapter 6, “Enterprise Integration”, I will be covering enterprise integration capability which the Spring framework provides, which helps to easily integrate your application components to other components within the same application or third party application.
In Chapter 7, “Testing”, I will first be covering the general testing methodologies in any application to some detail. After that I will be covering each testing methodology along with the support provided by the Spring framework.
In Chapter 8, “Data Access”,  I will be giving you details as to how Spring framework supports in interacting between data access layer and the service layer in your application.
In Chapter 9, “Transaction Management”, transaction support by Spring framework is explained in full detail along with various basic transaction concepts which is key in any enterprise application that you will develop.
In Chapter 10, “Caching”, I will be explaining the various caching mechanisms that you can use in your applications and Spring’s support to do this integration with ease.

Please follow the link to read these chapters. These chapters are hosted in www.javacodebook.com.

Chapter 3: Spring Quick Start

Chapter 4: Configuration Styles

Chapter 5: Application Configuration – Simplified

Chapter 6: Enterprise Integration

Chapter 7: Testing

Chapter 8: Data Access

Chapter 9: Transaction Management

Chapter 10: Caching



Spring Book - Chapter 2 - Getting started with Spring

Developing enterprise application using Spring Framework is much simpler than using standard Java EE in many ways. Even though Java EE’s declarative programming model using EJB simplifies infrastructural aspects of development such as transactions and security, t still introduces unwanted complexity to the application as a whole. Developers need to still write more Framework code than the application code. Over the period Java EE has also redefined itself to introduce new programming techniques like Aspect Oriented Programming (AOP) and Dependency Injection (DI). So many new Frameworks got evolved using these techniques. Leading from this pack of Framework at the moment is by Spring Framework by a long way. In this chapter I will try to give you details on various aspects of Spring Framework, along with the sample application that will be used throughout this book to show the various concepts in this Framework.
In this chapter, I will give you details on how you can start building applications with Spring Framework. I will also give details on the sample application on which the entire book is based. It also talks about the some basic concepts which are very much essential for understanding Spring in a holistic way.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.

Chapter 2: Getting Started With Spring



Spring Book - Chapter 1 - Introduction

Over the last few years, Spring has grown substantially, surpassing many other frameworks. Spring enables you to concentrate on writing less Spring-Framework-related code and more application code, which is vital in the fast-changing and cost-sensitive world of enterprise applications. Since its initial release in 2004, Spring has reinvented itself multiple times and become prominent in the industry as a strong force in the framework market. This has not only made the Spring Framework renowned, but it has also put healthy pressure or rather competition on well-known industry specifications (Java EE) and the application-server market. In the Java world, this is a very exciting time and a very important turning point.
In this chapter, I introduce Spring Framework as a whole (If I could, I would compel you to use it). Before explaining the nitty-gritty, I give you reasons to choose Spring for your application. Then I explain the Spring framework architecture and its features and, more important, introduce you to the main modules on which Spring Framework is based.

Please follow the link to read this chapter. This chapter is hosted in www.javacodebook.com.

Chapter 1: Introduction



Spring Book - Part 1 - Overview

Spring Framework is a Java platform that provides all-inclusive infrastructure support for developing JEE applications. It handles the almost all the plumbing/boilerplate code required for your application so that you can focus on your business specific logic while building your enterprise application. Simple Plain Old Java Objects (POJOs) becomes powerful objects having middleware services like security, transaction management etc. inside the Spring Container. Part 1 introduces you to the Spring Framework and also tries to introduce various core concepts on which Spring Framework is built on.
In Chapter 1, “Introduction”, you will get to know overview, history, overall architecture, building blocks, and features of the spring framework in detail.
In Chapter 2, “Getting Started with Spring Framework”, I will show you how to get set up for building applications with Spring Framework, and I will introduce the sample application on which the book is based. Chapter 2 also introduces some basic concepts that are essential for understanding Spring in a holistic way.
So here we go, I hope you will enjoy reading this book as much as I did in writing it for you.

Please follow the link to read these chapters. These chapters are hosted in www.javacodebook.com.

Chapter 1: Introduction

Chapter 2: Getting Started With Spring



Spring Book - Spring Framework 3: Beginner's Guide

Recent press release dated 14-Mar-2012 by SpringSource and VMware highlighted very important findings from Evans Data Research regarding the growing popularity and benefits of using Spring Framework. More than two thirds of Java developers are either using Spring today or plan to do so within the next two years and those that do use Spring are 50% more productive.
Spring Framework is an end to end enterprise application development framework providing comprehensive infrastructure support built on Java and Java Platform Enterprise Edition (Java EE) technology stack. Simple POJO’s become powerful components in the hands of spring framework.
The framework is built on top of standard patterns and proven technologies. The proposed book discusses spring framework in a holistic way with special focus on the main ideology on which the spring framework was build. It also tries to help spring evangelist with a one stop book for covering the entire syllabus to get their core spring professional certification. To help readers comprehend better; real life examples and scenarios are used with code samples. With the growing popularity of Spring Framework, it has become mandatory knowhow for any Java Developer.

Style of the book

The book will cover Spring Framework in a holistic way and aims at bringing the core values on which the framework was conceived. If you are in the process of getting yourself certified as a Spring Professional, this book will help you achieve it. To memorize core concepts in spring; real life objects and scenarios have been used with appropriate code samples.
The book will be written using diagrams, screenshots, and illustrations showing the meaning of the code. The text will be broken up into paragraphs and helpful color-coded sidebars such as “certification tips”, “sample questions”, “FAQ’s” and “warnings”. A typical page will have liberal use bullets, tables, subheadings and other textual elements which provide readers with excellent scanning capabilities. This will assist readers  preparing for Spring Certification  in glancing through the main points in the book before the exam. The book will have a sense of humor without being obnoxious or cloying. Each chapter will give the reader a feeling of reading a blog with more concentration on the main topic in a concise manner. A real life sample application will be used in the entire book and various concepts will be covered around it. The book will be compelling, fun and inviting for the readers.

Target Audience

  • Java developers and architects who would like to use spring framework for developing their applications.
  • Java developers who aim to get spring certified and would like to have a single book to do the complete revision.
  • Java developers who would like to discover spring framework.

Part I: Introduction

Chapter 1: Introduction

Chapter 2: Getting Started With Spring

Part II: Core Support by Spring

Chapter 3: Spring Quick Start

Chapter 4: Configuration Styles

Chapter 5: Application Configuration - Simplified

Chapter 6: Enterprise Integration

Chapter 7: Testing

Chapter 8: Data Access

Chapter 9: Transaction Management

Chapter 10: Caching

Part III: Web Application Development Support by Spring

Chapter 11: Spring Web

Chapter 12: Spring and Struts Integration

Chapter 13: Spring and JSF Integration

Chapter 14: Spring MVC and Spring Web Flow

Chapter 15: Web Application Security with Spring

Part IV: Enterprise Application Development

Chapter 16: Web Services - Spring WS

Chapter 17: Manageability - Spring JMX

Chapter 18: Messaging with Spring

Chapter 19: Remoting

Chapter 20: Tasks and Scheduling

Chapter 21: Declarative Enterprise Services – Spring AOP

Chapter 22: Spring Integration

Chapter 23: Spring Batch