Including a beans.xml may also do the trick.

On 1/18/2013 8:24 AM, Kurt T Stam wrote:
> Thanks,
>
> I see Ron uses @Resource in
>
> https://github.com/ronsigal/Resteasy/blob/89969d3b61c90da91f86ac221a2589c13e358521/jaxrs/arquillian/resteasy-cdi-ejb-test/src/main/java/org/jboss/resteasy/cdi/injection/ResourceProducer.java
>
> but this an EJB ( @ApplicationScoped), not a simple JAXRS endpoint. Do I
> have to use an EJB for @Resource to work?
>
> Thx,
>
> --Kurt
>
> On 1/18/13 3:54 AM, Weinan Li wrote:
>> Ron has just submitted 10k+ examples on using CDI, EJB with RESTEasy!
>>
>> The code is here: https://github.com/resteasy/Resteasy/pull/236/files
>>
>> Feel free to refer to it! :-)
>>
>> --
>> 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.
>>>
>>> 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
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
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