Hi Jose,
What we usualy do is create a new method (to do the persistence) and use
@CommitAfter there.

@OnEvent(component="addCustomer",value="success")
Object onSuccess() {
  this.persistData();
...
}
@CommitAfter
public void persistData() { ... }

Reply via email to