title: In-process communication between wars in the same container
body: <p>What options are there to achieve low-latency communication between two wars running in the same jetty-container?</p>
  
  <p>I basically need to call a service in one war from the other, but can't afford the overhead of calling it as a web service.</p>
  
  <p>Since they are running in the same JVM, I'm hoping to avoid using RMI/JMS etc., but I don't know what other options I have?</p>
  
  <p>I've looked at inter-servlet communication, but since direct method invocation is <a href="http://www.jguru.com/faq/view.jsp?EID=139489">deprecated</a> that doesn't seem to be the right choice?</p>
  
  <p>I also found <a href="http://code.google.com/p/kryonet/">kyronet</a>, but are there better solutions since this is in the same JVM?</p>
  
  <p>What I'm looking for is something like Apache Camel's <a href="http://camel.apache.org/vm.html">VM Component</a> (<a href="http://www.eecs.harvard.edu/~mdw/proj/seda/">seda</a> between web-applications), but since only one of the applications is using Camel for this is not an option.</p>
  
  <p>I know I might have to share some DTO's between the wars, but please don't suggest pulling the service into a shared library, if that was an option I wouldn't be asking this question:)</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Embedding an EJB-container is probably not an option either.</p>