Book description
Spring Dynamic Modules in Action is a comprehensive tutorial that presents OSGi concepts and maps them to the familiar ideas of the Spring framework. In it, you'll learn to effectively use Spring DM. You will master powerful techniques like embedding a Spring container inside an OSGi bundle, and see how Spring's dependency injection compliments OSGi. Along the way, you'll learn to handle data access and web-based components, and explore topics like unit testing and configuration in OSGi.
About the Technology
Spring Dynamic Modules is a flexible OSGi-based framework that makes component building a snap. With Spring DM, you can easily create highly modular applications and you can dynamically add, remove, and update your modules.
About the Book
What's Inside
- An introduction to OSGi for Spring developers
- How to use Spring with Spring DM
- How to develop enterprise OSGi applications
About the Reader
This book assumes a background in Spring but requires no prior exposure to OSGi or Spring Dynamic Modules.
About the Authors
A Java EE architect, Arnaud Cogoluègnes specializes in middleware. Thierry Templier is a Java EE and rich web architect. He contributed the JCA and Lucene to Spring. Andy Piper is a software architect with Oracle and a committer on the Spring DM project.
Quotes
"A crucial book."
- Peter Kriens, OSGi Technical Director
"A uniquely informative book and a vital reference."
- John Guthrie, Sybase, Inc.
"Dynamic modules sans voodoo: the best resource out there!"
- David Dossot, Co-Author of Mule in Action
"Incredibly useful and accessible...will save you days or weeks of effort!"
- Peter Pavlovich, Kronos Incorporated
"Right book, right time."
- Denys Kurylenko, LinkedIn Corp.
Table of contents
- Copyright
- foreword
- preface
- acknowledgments
- about this book
- about the authors
- about the title
- about the cover illustration
-
1. Spring DM basics
- 1. Modular development with Spring and OSGi
- 2. Understanding OSGi technology
- 3. Getting started with Spring DM
-
2. Core Spring DM
-
4. Using Spring DM extenders
- 4.1 Unleashing Spring DM's standard extender
- 4.2 Unleashing Spring DM's web extender
- 4.3 Summary
-
5. Working with OSGi services
- 5.1 Dependency injection and OSGi services
- 5.2 The thread context classloader and its use in OSGi
- 5.3 Advanced OSGi service configuration
- 5.4 Handling OSGi service dynamics
- 5.5 Handling collections of OSGi services
- 5.6 Programmatic service support
- 5.7 Summary
- 6. OSGi and Spring DM for enterprise applications
-
7. Data access in OSGi with Spring DM
- 7.1 Using JDBC within OSGi with Spring DM
- 7.2 Using ORM within OSGi with Spring DM
- 7.3 Transactions
- 7.4 Using the open EntityManager in view pattern
- 7.5 Summary
-
8. Developing OSGi web components with Spring DM and web frameworks
- 8.1 Using action-based web frameworks with Spring DM
- 8.2 Using component-based web frameworks with Spring DM
- 8.3 Using AJAX frameworks with Spring DM
- 8.4 Using web services with Spring DM
- 8.5 Summary
-
4. Using Spring DM extenders
-
3. Advanced topics
-
9. Advanced concepts
- 9.1 Configuring Spring DM core components
-
9.2 Extending the standard extender
- 9.2.1 Beans usable for configuration
- 9.2.2 Task executor for creating application contexts
- 9.2.3 Task executor for destroying application contexts
- 9.2.4 Extender properties
- 9.2.5 Propagating application context events
- 9.2.6 Overriding application context creation
- 9.2.7 Adding postprocessing to application contexts
- 9.2.8 Overriding the default OSGi application context listener
- 9.2.9 How SpringSource dm Server customizes Spring DM's extender
- 9.3 Extending the web extender and WAR deployer
- 9.4 Configuring embedded web containers
- 9.5 Support for Java 2 security
- 9.6 Advanced patterns
- 9.7 Summary
- 10. Testing with Spring DM
-
11. Support for OSGi compendium services
- 11.1 Overview of compendium services
- 11.2 Spring DM's Configuration Admin Service support
- 11.3 Spring DM's Event Admin Service support
- 11.4 Summary
- 12. The Blueprint specification
-
9. Advanced concepts
- A. Spring DM development with Eclipse
-
B. OSGi development with Maven 2
- B.1 Installing Maven 2
- B.2 Creating a project the Maven 2 way
- B.3 Using the Apache Felix Bundle Plugin
- B.4 Introducing Bundlor and its Maven plug-in
- B.5 Summary
- C. Spring DM development with Ant and Ivy
-
D. OSGi development with the Pax tools
- D.1 Pax Runner
-
D.2 Pax Construct
- D.2.1 Installing Pax Construct
- D.2.2 Creating a module-based project
- D.2.3 Setting up the project for Spring DM
- D.2.4 Creating a bundle fragment for the logging configuration
- D.2.5 Creating the data source bundle
- D.2.6 Creating the database client bundle
- D.2.7 Using a connection pool for the data source
- D.3 Summary
Product information
- Title: Spring Dynamic Modules in Action
- Author(s):
- Release date: September 2010
- Publisher(s): Manning Publications
- ISBN: 9781935182306
You might also like
book
Java APIs, Extensions and Libraries: With JavaFX, JDBC, jmod, jlink, Networking, and the Process API
This book completes the Apress Java learning journey and is a comprehensive approach to learning Java …
book
Kotlin for Enterprise Applications using Java EE
Build Java Enterprise Applications and learn how Kotlin makes it easier to code them using components …
book
Containerizing Continuous Delivery in Java
Using containers to package and deploy applications is causing a seismic shift in the way software …
book
Java 9 High Performance
Best practices to adapt and bottlenecks to avoid About This Book Tackle all kinds of performance-related …