Skip to content

Instantly share code, notes, and snippets.

@estebanroblesluna
Created March 17, 2012 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estebanroblesluna/2066269 to your computer and use it in GitHub Desktop.
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