Thursday, July 11, 2013

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

Tuesday, April 3, 2012

Sunday, April 1, 2012

Tuesday, March 20, 2012

Spring Security - multiple authentication providers

The form posts have been moved to a new site.

Please visit www.javacodebook.com for more resources on Java and Spring in coming days.


www.javacodebook.com