Mantis - Resin
Viewing Issue Advanced Details
3723 block always 10-19-09 19:34 01-07-10 11:21
voodude  
ferg  
normal  
closed 4.0.2  
fixed  
none    
none 4.0.3  
0003723: @Named("name") doesn't put bean in scope collection
@ApplicationScoped @Named("foo") should put the bean in the servlet context attributes as "foo", but it doesn't seem to be there. This works on 4.0.0.

Last tested on trunk 2009-10-19.

Notes
(0004281)
ferg   
11-04-09 19:02   
That 4.0 behavior was nonstandard. The @ApplicationScoped beans are stored with the same lifecycle as the ServletContext, but they are not stored in ServletContext attributes.
(0004283)
ferg   
11-05-09 08:52   
Reopened because it's not being put in EL.
(0004292)
ferg   
11-09-09 14:08   
Is this with a @Stateless or @Session bean? The EJB beans now need a META-INF/ejb-jar.xml to trigger EJB scanning. The ejb-jar.xml can be empty. It's just a marker like beans.xml.
(0004371)
ferg   
01-07-10 11:21   
ejb/207-

Checked with @ApplicationScoped, @Stateless bean and @Named and the bean is properly registered with Java Injection.