Created
March 17, 2012 23:13
-
-
Save estebanroblesluna/2066325 to your computer and use it in GitHub Desktop.
hibernateFlow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:bean id="hibernateSessionAdvice" class="org.mule.hibernate.extensions.HibernateSessionAdvice"> | |
<spring:constructor-arg index="0" ref="sessionFactory" /> | |
</spring:bean> | |
<custom-processor name="openSessionMP" class="org.mule.hibernate.extensions.OpenHibernateSessionMP"> | |
<spring:property name="advice" ref="hibernateSessionAdvice" /> | |
</custom-processor> | |
<custom-processor name="closeSessionMP" class="org.mule.hibernate.extensions.CloseHibernateSessionMP"> | |
<spring:property name="advice" ref="hibernateSessionAdvice" /> | |
</custom-processor> | |
<flow name="hibernateFlow"> | |
<http:inbound-endpoint address="${hibernateFlow}" exchange-pattern="request-response"> | |
<http:body-to-parameter-map-transformer/> | |
<processor ref="openSessionMP"/> | |
<response> | |
<processor ref="closeSessionMP"/> | |
</response> | |
</http:inbound-endpoint> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment