Chapter 3. Persistence pays off
This chapter covers
- The benefits of JDBC and JPA, and why they won’t work in an OSGi environment without help
- How enterprise OSGi and the Apache Aries extensions restore a lovely programming model
- How to read and write from a database in your sample application
- How to use transactions for cleanup when things go wrong
Just as it needs a frontend, every enterprise application needs a backend. For many business applications the heart of the backend is persistence—either read-only access to a directory service, or a full read–write relational data mine, or something in between. This chapter explains how to use persistence and transactions in an enterprise OSGi environment.
Let’s start with a reminder of the ...
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.