title: Access EJB from JAX-RS
body: <p>While Developing a Java EE Web app, I would like to know simple ways to access an stateless <code>EJB</code> object  through <code>Rest</code>.</p>
  
  <p>This project needs <strong>no</strong> Dynamic Web from Java, as Client side is fully javascript deployed, so communication is done only with <code>Ajax</code> calls.</p>
  
  <p>As I've read one way would be to create 2 <code>EJB</code> one for functionality other to represent Web Service. </p>
  
  <p>Is there a way to avoid the Web Service part? (avoid completely the WAR) Maybe with <code>DI</code>?</p>
  
  <p>Java EE 6, EJB 3.1, Eclipse desired. I also believe the right application server would be Glassfish instead of Jboss, due to it's compatibility with <code>EJB</code> 3.0</p>
  
  <p>No interesting in using <code>JAX-WS</code></p>