0 Replies Latest reply on Sep 12, 2003 4:51 AM by rrussell25

    Programmatic creation of durable subscription

    rrussell25

      Is it possible to programmatically create a durable subscription on the fly? I'm trying to add a new user, map the user to a role and assign the user the client id of the newly created DurableSubscription. In addition, i want to make sure this configuration is immediately effectivie (i.e. no server restart). All this effects the jbossmq-state.xml file.

      I was able to add users and map them to roles using code from the servlet that drives the jmx-console app, but have been unable to find a way to add the new DurableSubscription. Is it possible?

      Also, adding the new user was immediately effective, but mapping the user to the role seemed to require a server restart.

      Any thoughts? Thanks in advance!