javaee / interceptors-spec

interceptors-spec~interceptors-spec-repository
Other
6 stars 3 forks source link

Clarify if interceptors in archive other than the intercepted class's archive should also share the class's enterprise naming context #28

Open glassfishrobot opened 10 years ago

glassfishrobot commented 10 years ago

To summarize, is the following scenario reasonable?

Simplified scenario: EAR:

The question is whether FooInterceptor in .jar should get injected (using @Resource) the env-entry resource declared in the war's web.xml

Test case at: https://github.com/cdi-spec/cdi-tck/blob/4de48c4ac2fed89d517d50ab3e89fef163ac258d/impl/src/main/java/org/jboss/cdi/tck/interceptors/tests/contract/interceptorLifeCycle/environment/jndi/InterceptorEnvironmentJNDITest.java

(Some people might say that this is not the intent.)

Affected Versions

[1.2]

glassfishrobot commented 10 years ago

Reported by bafco

glassfishrobot commented 10 years ago

bafco said: Interceptors Spec: 2.2.1 Interceptor Environment An interceptor class shares the enterprise naming context of its associated target class. Annotations and/or XML deployment descriptor elements for dependency injection or for direct JNDI lookup refer to this shared naming context.

Java EE Platform Spec.: EE.5.2 JNDI Naming Context

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA INTERCEPTORS_SPEC-28