Chapter 5. Best practices for enterprise applications
This chapter covers
- How to scope your OSGi bundles
- The importance of keeping your bundle’s private bits private
- Why static factory classes are no longer your friend
- The whiteboard pattern, a better alternative to the listener pattern
- Avoiding bad WAR habits, and why it makes sense to keep persistence code in its own bundle
In the first part of this book, we took a focused look at the Apache Aries project and how it can be used to write useful enterprise OSGi applications that leverage a combination of base OSGi modularity, enterprise services, and a lightweight programming model. Although this was an incredibly fast way to get to grips with enterprise OSGi, we feel it’s time now to ...
Get Enterprise OSGi In Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.