2008/6/12 bwtaylor <[EMAIL PROTECTED]>:
>
> 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?

We do something similar in the BAM module. We just use the spring
abstractions (e.g. JpaTemplate) to deal with the session handling;
then it'll work with spring declarative transactions too.
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to