[javaee-spec users] [jsr342-experts] Re: Definitive list of pre-defined types valid for resource-env-ref?

From: Linda DeMichiel <>
Date: Thu, 24 Apr 2014 11:35:15 -0700

Hi Kevin,

On 4/14/14 9:03 AM, Kevin Sutter wrote:
> Is there a definitive list of valid pre-defined types for the
> resource-env-ref? It looks like Table 2-4 in Common Annotations (JSR
> 250) started such a list, but then it left it pretty open-ended at the
> end:
> javax.resource.cci.InteractionSpec resource-env-ref
> javax.transaction.UserTransaction resource-env-ref
> Everything else resource-env-ref
> I realize we need to be flexible with this due to some managed objects
> having arbitrary types. But, I'm wondering if we have a spec-defined
> list of the pre-defined types that are valid for resource-env-ref?
> And, if not, does it make sense to expand on this Table 2-4? Or,
> maybe document it somewhere else? Thanks.
The Platform spec explicitly states that in addition to the two types
listed in the table that you cite, the following may also be specified
by means of resource-env-ref: Validator, ValidatorFactory,
ManagedExecutorService, ManagedScheduledExecutorService,
ManagedThreadFactory, ContextService, BeanManager.
A resource-env-ref may also be used to specify a JMS Destination,
although message-destination-ref is preferred for this purpose.

The Common Annotations spec section 2.3 and table 2.4 still refer to
the state as of Java EE 5, so we should update it to reflect these
additions when we next do an MR.



> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> Kevin Sutter
> STSM, Java EE and Java Persistence API (JPA) architect
> mail:, Kevin Sutter/Rochester/IBM
> phone: tl-553-3620 (office), 507-253-3620 (office)