Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenHibernateSessionMP
public class OpenHibernateSessionMP implements MessageProcessor {
private HibernateSessionAdvice advice;
public MuleEvent process(MuleEvent event) throws MuleException {
advice.openSession();
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