Tag: JPA

john.demic on Tuesday, July 16, 2013

Getting started with JPA and Mule

5

Working with managed entities in Mule applications can be difficult.  Since the session is not propagated between message processors, transformers are typically needed to produce an entity from a message’s payload, pass it to a component for processing, then serialize it back to an un-proxied representation for further processing.

Transactions have been complicated too.  Its difficult to coordinate a transaction between multiple components that are operating with JPA entity payloads.  Finally the lack of support for JPA queries makes it difficult to  load objects without working with raw SQL and the JDBC transport.