--
Weinan Li
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Friday, January 18, 2013 at 2:35 PM, Kurt T Stam wrote:
> 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.
>
>
Try to mark NotificationResource as a EJB session bean also. In RESTEasy
example/ejb-integration there are examples :-)
>
> Do I have to set something in the web.xml (http://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
> (mailto:Resteasy-users@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
>
------------------------------------------------------------------------------
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