How can i make a function just like RMI unreference with EJB?

I need a similar function to rmi unreference in order to keep connection with server for ever, but invoke timeout when user is logged out or disconnected by accident( no power/ network cable problem). How can i achieve this?
[238 byte] By [skoizumi2133a] at [2007-11-26 14:03:46]
# 1

What problem are you trying to solve? There is no need to do any of this just to manage

the ejb resources themselves. That is all handled by the ejb container.In the case of

stateful session beans, you can control their lifetime by either calling their remove method

or setting vendor-specific parameters to control their timeout.

--ken

ksaksa at 2007-7-8 1:47:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

I want my client to connect to the server as long as the client is connected. no timeout!( for this one i can set lengthy period of time ) But when the client machine shuts down or disconnected by network cable problems. At the time, I want to get rid of this session. Since I can't depend on the timeout, how can I remove this user from the session?

skoizumi2133a at 2007-7-8 1:47:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
humm... Maybe they forgot to put this future in the ejb
skoizumi2133a at 2007-7-8 1:47:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...