Howdy, Stranger!

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


Destroying javabeans

hedishedis Member Posts: 6
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?


  • treshrtreshr Member Posts: 326
    [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.