How to make the @Resources annotation work?
I have spent better part of two hours trying to make this thing work.
I am trying to do injection of multiple resources within my Servlet class. The code is something like this:
// all the relevant import statements
public class MyServlet extends javax.servlet.HTTPServlet
// Relevant Servlet code
Now what exactly am I doing wrong here? Can someone please help me with the syntax? There are almost no examples of using @Resources (or a very similar @EJBs) annotation.