Attack complexity in your Java applications using Modular Java. This pragmatic guide introduces you to OSGi and Spring Dynamic Modules, two of the most compelling frameworks for Java modularization. Driven by real-world examples, this book will equip you with the know-how you need to develop Java applications that are composed of smaller, loosely coupled, highly cohesive modules.


This second reprinting of Modular Java has been revised to include updated information on OSGi Blueprint Services. It also details Pax-Runner’s new profiles feature that makes loading an OSGi runtime with bundles even easier, along with errata fixes and updates to bring the book up to date with current versions of the tools used.

Buy Now

Select a DRM-free Format:

In Stock
In Stock
In Stock
Buy the eBook and get these DRM-free formats delivered immediately:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
We can automatically send them to your Kindle, and your Dropbox. (You'll need to log in to enable these options.)
 

About this Book

  • 260 pages
  • Published:
  • Release: P1.0 (2009-06-24)
  • ISBN: 978-1-93435-640-1

The secret weapon for attacking complexity in any project is to break it down into smaller, cohesive, and more easily digestible pieces. With Modular Java, you can easily develop applications that are more flexible, testable, maintainable, and comprehensible.

Modular Java is a pragmatic guide to developing modular applications using OSGi, the framework for dynamic modularity in Java, and Spring Dynamic Modules, an OSGi extension to the Spring Framework. You’ll start with the basics but quickly ramp up, creating loosely coupled modules that publish and consume services, and you’ll see how to compose them into larger applications. Along the way, you’ll apply what you learn as you build a complete web application that is made up of several OSGi modules, using Spring-DM to wire those modules together.

Modular Java is filled with tips and tricks that will make you a more proficient OSGi and Spring-DM developer. Equipped with the know-how gained from this book, you’ll be able to develop applications that are more robust and agile.

Contents and Extracts

Full Table of Contents

  • Introduction
  • Getting Started excerpt
  • Dude, Where’s my JAR?
  • Working with Bundles
  • OSGi Services excerpt
  • Spring and OSGi excerpt
  • Creating Web Bundles
  • Extending Bundles
  • OSGi in Production
  • Configuring the Application
  • Appendixes
    • Manifest Headers
    • Spring-DM Configuration
    • The OSGi Blueprint Service
    • Resources

About the Author

Craig Walls is a professional software developer with over 15 years of experience in several industries, including telecommunications, finance, retail, and education. He is the author of Spring in Action and XDoclet in Action and is an avid proponent of Spring, open-source, and agile development.