geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Dependency injection in HttpSessionBindingListener
Date Thu, 11 Dec 2008 17:45:35 GMT
Why do you think that HttpSessionBindingListeners should support  
dependecy injection?  They aren't managed objects AFAICT and as you  
state.  Is there something I've overlooked in the spec?

thanks
david jencks

On Dec 11, 2008, at 7:12 AM, Vamsavardhana Reddy wrote:

> As part of SCA JavaEE Integration, I am looking at dependency  
> injection into HttpSessionBindingListener's in web apps.   
> HttpSessionBindingListener is different from other listeners in that  
> HttpSessionBindingListener need not be specified in web.xml.   
> HttpSessionBindingListener gets activated automatically when an  
> object of that type (implementing HttpSessionBindingListener  
> actually) is bound to HttpSession. Other listeners are specified in  
> web.xml and their instantiation is done by the web container.   
> Because of this, at deployment time, the web builder does not even  
> know if there is any HttpSessionBindingListener that it should  
> process to support dependency injection.  Any thing I am failing to  
> see?
>
> Vamsi


Mime
View raw message