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...