title: Service oriented architecture spring-mvc
body: <p>I have a spring mvc controller that returns a pojo :</p>
  
  <pre><code>@RequestMapping(value = "/person", method = RequestMethod.POST,headers="Accept=application/xml, application/json")
  public @ResponseBody Person addPerson(@RequestBody Person person) {
    return personService.add(person);
  }
  </code></pre>
  
  <p>This controller is located in war file A, on server A.  </p>
  
  <p>I have another spring app, war file b, that may go on a different server or the same server.  Whats the best way to access the addPerson method ?  Via an http request or packaging up the class file (and dependicies) as a jar and including in war file b ?  Or am I getting the wrong end of the stick and should do something else ? </p>