java - What is the best way to encapsulate multiple service calls using Spring? -


i need call 1 third party service , if succeeds, call service of application. best approach encapsulate calls? , ensure become single transaction?

for example, call services in 1 single point:

public class thirdpartyservice(){      sendproduct(){         // call external service     }  }  public class productservice(){      confirmproduct(){         // stuff     }  } 


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -