users@jersey.java.net

_at_EJB with jersey ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Fri, 25 Jul 2008 16:49:35 +0200

I have an EJB and I was wondering if I can make a reference to EJBs in
Jersey annotated classes, something like:

@UriTemplate("/test")
public class TestService {
    @EJB
    private PricesFacadeLocal prices;

   @HttpMethod("GET")
   @ProduceMime("text/html")
   public String getPrice() {
      String result = "<html><head><title>Shoes list</title></head><body>";
      result += prices.getPrice(1);
      result += "</table></body></html>";
      return result;
   }
}

* I am considering to run this code on Glassfish...