I don't really understand what you are asking for?
What you describe is called a Topic.
But to answer your question, write an interceptor as described on the WIKI page.
The method on JMSServerInterceptor[Support] you want are either
(sorry, didn't understand what you want :-):
Login: authenticate(String, String)
Subscription: subscribe(ConnectionToken, Subscription)
I'll clarify. My server posts live highway traffic accidents and events to topics/queues but most messages are only updates on existing event data not the full data each time. So I would like to know when some one logs in so I can send them all open events on one message. I can't use durable subscriptions on topics because that would send them lots of old data as well when my subscribers only want the live data.
I'll look into JMSServerInterceptor. Seems like what I want.
Quick question. Does anyone know the difference between JMSServerInterceptor's checkUser() and authenticate() methods? I know one returns a client ID and one a sesson ID but are there situations when one is called and not the other? Or are they both called at different phases?
checkUser() determines whether there is a preconfigured client id for the user/password
as configured on the state manager.