Version 7

    JBossMQ File State Manager

     

    This service stores the DurableTopicSubscriptions in the file conf/jbossmq-state.xml

    It is in docs/examples/jms/file-state-service.xml or in

    deploy/jms/jbossmq-service.xml

    before 3.2.4

     

    Examples

     

    The example configuration can be found in

    docs/examples/jms/file-state-service.xml

    An example jbossmq-state.xml (which goes in the

    server/[config]/conf

    folder of jboss)

    can be found

    docs/examples/jms/conf/jbossmq-state.xml

     

    NOTE: Also read the instructions at the top of

    file-state-service.xml

    on how to change the

    security to use the

    jbossmq-state.xml

    file, otherwise it will continue to try to use

    the database.

     

    Default Configuration

      <mbean code="org.jboss.mq.sm.file.DynamicStateManager"
          name="jboss.mq:service=StateManager">
        <!-- This file is pulled from the configuration URL of the server -->
        <attribute name="StateFile">jbossmq-state.xml</attribute>
      </mbean>
    

     

    Configurable Attributes

    • StateFile
      - the name of the state file

    • HasSecurityManager
      - a flag used for backwards compatibility with JBoss-2.4, when false it does not use JAAS for authentication

     

    Operations

    • loadConfig() - to reload the state file

    • saveConfig() - to save the state file

    • addUser(String name, String password, String clientId) - create a new user

    • removeUser(String name) - remove a user - also removes the user from all roles

    • addRole(String role) - add a new role

    • removeRole(String role) - remove a role

    • addUserToRole(String user, String role) - add a user to the role

    • removeUserFromRole(String user, String role) - remove a user from a role

     

    Related: