Hi,

Thanks for your response, things are a bit clear for me :) ... but I'm in trouble now, 
is there some
workaround for this?

The class that is going into the HttpSession is the 
SessionLifecycleListener!SessionComponentManager
instance ... not my component object directly (it is builtin the manager) so my 
component is not
aware of these events.

Would be nice If the SessionComponentManager object could go over all instanciated 
components and IF
they are implementing the HttpSessionBindingListener inteface it should call the 
Bingind methods
(both of them) ... anyone else bet on this?

that's because my component should really know that the session ended to clear the 
reference at
application scope ... I'd like to stay using the component way instead implementing my 
own session
control :)

Thanks

PS: I'll give a try and code it ...

+ Samuel G. Mota
+ [EMAIL PROTECTED]
+ 55 (11) 4417 7093
+ Business Application Dpt.
+ Netset Serviços em Tecnologia
+ a Hypercom Company
+ http://www.hypercom.com


                                                                                       
                                                                    
                      [EMAIL PROTECTED]                                                
                                                                 
                      Sent by:                                     To:       [EMAIL 
PROTECTED]                                    
                      [EMAIL PROTECTED]        cc:                                     
                                                
                      ceforge.net                                  Subject:  Re: 
[OS-webwork] Session handler                                              
                                                                                       
                                                                    
                                                                                       
                                                                    
                      24/10/2003 05:32                                                 
                                                                    
                      Please respond to                                                
                                                                    
                      opensymphony-webwork                                             
                                                                    
                                                                                       
                                                                    
                                                                                       
                                                                    





--- Samuel Mota <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've sette up a component with Session lifecycle ...
> it's working like a charm, but my session
> component adds an application scoped reference to
> the user (he can login only once) ...
>
> When the session ends I must clear the reference at
> the application scope.
>
> I've extended the SessionLifeCycleListener class
> from Xwork to override the
> sessionDestroyed(HttpSessionEvent e) method, but the
> session when this method is called is totally
> empty ...

That's because tomcat invalidates session first,
before calling callbacks... Your component placed on
session shall be HttpSessionBindingListener...

This suks, but it's standart....

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung.
Arbeitsort: Mainz
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork






-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to