Destroying javabeans

I going to make a counter that counts how many users there is on the site at same time.

I want to make a JavaBean what count down a int in another javabean then its die.

Then this bean dies (then a user closeing the browser).. i want it to call a destroy()-method thats doing something for me.

Cant I use destroy() in a javabean? (it dont work for me).

Someone who can give me a hint?


  • [b][red]This message was edited by Moderator at 2003-6-2 23:50:20[/red][/b][hr]
    You don't usually destroy JavaBeans. You give a scope to a specific JavaBean and the server takes care that if a JavaBean is no longer needed, it will be deleted.

    It would be a hell of a job to create and destroy every JavaBean.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion