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