For the ESB bus, persistence is the key element in storing messages that could be associated as business objects that run through the ESB workflow. There are other persistent elements that comprise the metadata that define how the messages and workflow are being handled in the ESB through configuration. Persistence can also be considered the feedback that the ESB gives to the system in the form of logging, errors, and audits. In this chapter, we will cover persisting items to the database, including messages and logging.
We will cover the following topics:
Persistence basics
Supporting frameworks for persistence
Introduction to Entity Framework
XML serialization
C# reflection
The PayQueue sample
The SQL queuing sample
Database logging