Remove the client context map from CometdGlobals and store it on the ConfigurableServerChannel instead.
This can be achieved with a ConfigurableServerChannel.Initializer. Unfortunately (again) the data is not passed to the Initializer so the authorizer will need to push the context onto the environment.
This will really simplify things I think and make synchronization less of a hassle.
Remove the client context map from CometdGlobals and store it on the ConfigurableServerChannel instead.
This can be achieved with a ConfigurableServerChannel.Initializer. Unfortunately (again) the data is not passed to the Initializer so the authorizer will need to push the context onto the environment.
This will really simplify things I think and make synchronization less of a hassle.