Skip to content

Instantly share code, notes, and snippets.

@estebanroblesluna
Created March 17, 2012 23:07
Show Gist options
  • Select an option

  • Save estebanroblesluna/2066269 to your computer and use it in GitHub Desktop.

Select an option

Save estebanroblesluna/2066269 to your computer and use it in GitHub Desktop.
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