users@concurrency-ee-spec.java.net

[jsr236-spec users] Re: Namespace for default objects

From: Linda DeMichiel <linda.demichiel_at_oracle.com>
Date: Wed, 20 Feb 2013 14:14:07 -0800

On 2/20/2013 1:59 PM, Arun Gupta wrote:
> There is a recommendation in the spec to create all user objects in java:comp/env/concurrent namespace.
>

Right. Environment entries declared by application components are recommended to be in java:comp/env/...

> So the default object is going to be in a different namespace than the user-created one. Why this discrepancy ?
>

Objects representing container services are in java:comp

For example:

java:comp/UserTransaction
java:comp/ORB
java:comp/ValidatorFactory
java:comp/DefaultDataSource
...
...



> Arun
>
> On 2/19/13 8:31 PM, Linda DeMichiel wrote:
>>
>>
>> On 2/19/2013 6:33 PM, Arun Gupta wrote:
>>> Shouldn't the default objects for JSR 236 be available in "java:comp/env/concurrent" namespace instead of "java:comp" ?
>>>
>>> Arun
>>>
>>
>> No. java:comp is consistent with the other default objects that the Java EE product provider
>> must provide.
>>
>> -Linda
>