I need to use to durable subscriber. According to JBoss docs I need to set user identification in jbossmq-state.xml file.
The problem is that I don't know at the beginning how many subscribes will be created. Can I add the subscribes identifications at runtime? Can I force JBoss to reread the jbossmq-state.xml file? Or is there any other work around?
No, there is no know way. But new stuff is on the way...
You could ofcourse allways fix your own StateManager and make that dynamic. The source is there.