Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CloseHibernateSessionMP
public class CloseHibernateSessionMP implements MessageProcessor {
private HibernateSessionAdvice advice;
public MuleEvent process(MuleEvent event) throws MuleException {
advice.closeSession();
return event;
}
public HibernateSessionAdvice getAdvice() {
return advice;
}
public void setAdvice(HibernateSessionAdvice advice) {
this.advice = advice;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment