Get bean from ServletContext on context destruction

2008-06-05 Thread Nam3l3ss
t;!ok" : "ok")); 6: }else{ 7: System.out.println("No bean =("); 8: } 9:} where line 3 should do the trick. How can this be done? Googling only turned up the reverse, accessing context from a bean, and the

Get bean from servletContext on context destruction

2008-06-05 Thread Nam3l3ss
Resource() ? "!ok" : "ok")); 6: }else{ 7: System.out.println("No bean =("); 8: } 9:} where line 3 should do the trick. How can this be done? Googling only turned up the reverse, accessing context from a bean, and the

Application scope bean destruction?

2008-04-24 Thread nam3l3ss
t the container might call some kinda destroy method, so I tried all the usual ones, without result. Do I have to explicitly remove it from the servlet context, or do I need to write some method that the container can call? Thanks for your time reading this. nam3l3ss