Book description
If you’re an experienced Java developer in the enterprise, this practical, hands-on book shows you how to use OSGi to design, develop, and deploy modular cloud applications. You’ll quickly learn how to use OSGi, through concise code examples and a set of best practices derived from the authors’ experiences with real-world projects.
Through the course of this book, you’ll learn to develop modern web applications with tools and techniques such as RESTful Web Services, NoSQL, provisioning, elasticity, Auto Scaling, hotfixes, and automatic failover. Code samples are available from GitHub.
- Work with dynamic OSGi services to create modular applications
- Explore the basics of OSGi bundles and modular application design
- Learn advanced topics, including semantic versioning, integration testing, and configuring components
- Understand OSGi pitfalls, anti-patterns, and features you should avoid
- Create a modular architecture for cloud-based web applications
- Discover how maintainability, extensibility, scalability, and testability are affected by modular design
- Get a look at various options for creating web applications with a modular approach
- Interact with persistent storage services, including relational databases and NoSQL
- Examine alternatives for deploying modular applications to the cloud
Publisher resources
Table of contents
- Building Modular Cloud Apps with OSGi
- Dedication
- Preface
-
I. Introducing Modularity in Java
- 1. Modularity Introduction
- 2. Basic Concepts of OSGi
-
3. Creating the First OSGi Application
- Prerequisites
- Getting Started
- Creating an API Bundle
- Creating an OSGi Service
- Running the Code
- Using the Agenda Service
- Service Instances
-
Understanding Service Dynamics
- Services and Bundle States
- Debugging Services
- Having Multiple Service Implementations
- Service Properties
- Service Ranking
- Service Registration and Deregistration Callbacks
- Injecting Multiple Service Implementations and the Whiteboard Pattern
- Lifecycle Callbacks
- Injecting BundleContext and DependencyManager
- 4. Advanced OSGi
-
5. Pointers and Pitfalls
- Better Understanding OSGi Specifications
- Require Bundle
- Fragment Bundles
- Loading Extra System Packages
- Profilers, Coverage Tools, and Bootpath Delegation
- Dealing with Non-OSGi Libraries
- Transitive Dependencies
- Classloading Problems in Libraries and Frameworks
- The Low-Level Service API
- Dynamic Classloading
-
II. Developing Cloud Applications
- 6. Cloud Application Architecture
- 7. Architectural Capabilities
- 8. Creating Web Applications
- 9. Persistence
-
III. Deploying Applications in the Cloud
- 10. Deployment
- 11. Alternative Deployment Methods
- A. Example Application
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Building Modular Cloud Apps with OSGi
- Author(s):
- Release date: September 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449345112
You might also like
book
Enterprise OSGi In Action
Enterprise OSGI in Action is a hands-on guide for developers using OSGi to build the next …
book
Instant OSGi Starter
The essential guide to modular development with OSGi for the serious application developer Learn something new …
book
OSGi and Equinox
A Hands-On Guide to Equinox and the OSGi Framework In , three leading experts show developers—for …
book
OSGi in Depth
OSGi in Depth presents practical techniques for implementing OSGi, including enterprise services such as management, configuration, …