[SOLVED] How to remove shared object in JME RMI


Do we need to remove shared object when the client service got removed ? If so, how ?

For example see

it shares callback listener on initialize but never removes it on terminate.


Suppose we have some services which we add them when player is in game session and remove them when he leaves the game session, but stays connected (logged in), and he might want to rejoin to game session again.

Why are you removing the client service?

Stuff should be cleaned up during normal connection termination but in general a lot of the services consider that once they are registered they will exist until the connection tears down.

1 Like

Thanks that explains it.

Probably for no good reason :wink:, I thought I am supposed to add them when need them and remove them when not need.