I'm writing a message enricher than needs database access using hibernate. I'm sure that others have used hibernate within Processors. I'm struggling to come up with the right model to replace OpenSessionInView within the camel route. Has anybody thought about this?
I've played with decorating Processors with hibernate session management code, but I'd like to be able, when appropriate to share the session across a larger span. It's also not clear how to adapt this to other constructs (eg custom DataFormats, etc...) that don't extend Processor. I looked briefely at the JPA component, but didn't see much to go on. In fact, I didn't see how to tell it what session factory to use. I don't really want to translate messages to or from the database directly anyway. -- View this message in context: http://www.nabble.com/Hibernate-Session-Management-tp17811164s22882p17811164.html Sent from the Camel - Users mailing list archive at Nabble.com.
