users@glassfish.java.net

Re: Jersey or Servlet ?

From: <glassfish_at_javadesktop.org>
Date: Tue, 31 Mar 2009 10:26:18 PDT

Just to be blunt, the features of Jersey and JAX-RS far (far) outweigh the minor pains of looking up an EJB or Datasource reference. Considering Netbeans will generate the lookup code for you in 1 or 2 clicks, this is a non-starter, IMHO.

Just leverage a simple lookup pattern in your code. Later, when we get injection, you can update your lookup code to simply return the injected resources. Simple.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=339899