title: JAX-RS 2.0 (Resteasy client) for server to server communication
body: <p>This is a rather generic question but would you use use JAX-RS to communicate between two server services running on potentially two different hosts (leveraging the Resteasy client)?
  Or would you stick to the more traditional EJB remote invocation?</p>
  
  <p>I'm a bit worried about the following potential issues:
  - maintaining a pool of Http connections - will be per client and not global to the application server
  - no optimisation if both services are on the same host (EJB invocations would be local in this case)
  - authorisation (credentials): managed by the application itself when configuring the RestClient vs. container managed for EJB
  - what else?</p>
  
  <p>Any feedback?
  Thanks for your help.</p>