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
Table of contents
- 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: 9781449345150
You might also like
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …