Hi guys,

Running on AS7 and RESTeasy 2.3.5, I'm trying to inject a mail session 
in my JAXRS endpoint using

/**
  * The JAX-RS resource that handles notification specific tasks.
  *
  */
@Path("/notify")
public class NotificationResource {

     @Resource(mappedName="java:jboss/mail/Default")
     private Session mailSession;


However the mailSession remains null, while the log indicate that 
'java:jboss/mail/Default' is bound.

Do I have to set something in the web.xml for the Resource annotation to 
be executed?

Thx,

--Kurt

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to