We received the following request. In fact we had documented that you could not use a resource adapter as a managed bean, but the statement was not very clear. This will be fixed in the EE 7 tutorial.
-------- Original Message --------
Subject: Re: Injecting RA into a servlet?
Date: Thu, 25 Apr 2013 23:03:21 +0530
From: Sivakumar Thyagarajan <firstname.lastname@example.org>
CC: RAMU,JAGADISH <email@example.com>
On Thursday 25 April 2013 06:25 AM, Marina Vatkina wrote:
> Siva, Jagadish,
> According to the Java EE Tutorial
> (http://docs.oracle.com/javaee/6/tutorial/doc/gmgjb.html) you can inject
> a RA. Are there a place to read more about it? Which API can be called
> on the injected ref? Are there any devtests that I can look at?
This appears to be an error. I will report this to the docs team to have
this fixed. Thanks for pointing this section to us.
In EE 6 the behaviour was undefined though the presence of a beans.xml
in rar would make the RAR a bean archive.
Section 21.5 in  now describes the new DI related requirements we
brought in the Connectors MR in EE 7. It is not recommended now to use
the ResourceAdapter class as a Bean as it is not portably supported.