users@glassfish.java.net

Re: Environment entry not working / uses default always

From: Markus KARG <karg_at_quipsy.de>
Date: Wed, 30 Apr 2008 17:55:45 +0200

Cheng,

thank you, you are right.

This behaviour is specified in "Java(tm) Platform, Enterprise Edition
(Java EE) Specification, v5" in chapter EE.5.2.3 "Annotations and
Injection":

"By default, the name of the field is combined with the fully qualified
name of the class and used directly as the name in the application
component’s naming context. For example, a field named myDatabase in the
class MyApp in the package com.example would correspond to the JNDI name
java:comp/env/com.example.MyApp/myDatabase"

Thanks a lot!
Markus

glassfish_at_javadesktop.org schrieb:
> Hi Markus,
>
> This is specified in Java EE 5 Platform Spec. There is a chapter on Environment and naming. Another related spec is Common Annotation Spec. Resource injections apply to the whole Java EE platform, not just EJB 3. That's why it's specified at platform level, though EJB 3 spec may have specific requirements on certain aspects.
>
> -cheng
> [Message sent by forum member 'cf126330' (cf126330)]
>
> http://forums.java.net/jive/thread.jspa?messageID=272240
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
QUIPSY QUALITY GmbH & Co. KG
Ein Unternehmen der MES-Gruppe
Stuttgarter Strasse 23
D-75179 Pforzheim
Tel: 07231-9189-52
Fax: 07231-9189-59
www.quipsy.de
karg_at_quipsy.de
Registergericht Mannheim HRA 701214
Geschäftsführer: Nils Schroeder
Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe geschützte Informationen und ist ausschließlich für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail versehentlich erhalten haben und nicht der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren, nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte informieren Sie uns als Absender über diesen Zustellungsfehler und löschen Sie die E-Mail.