Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3244

Enable PropertiesLoginModule JAAS module to optionally cache values in memory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.2
    • 5.5.0
    • None
    • None

    Description

      Currently, PropertiesLoginModule will load users.properties and groups.properties files on every connection. While this is OK in most cases, in some (Stomp where connections come and go frequently) this can cause performance issues.

      We should provide configuration parameter (reload=false which will make module to cache values of these files in memory.

      The example config is here:

      activemq-domain {
          org.apache.activemq.jaas.PropertiesLoginModule required
              debug=true
              reload=false
              org.apache.activemq.jaas.properties.user="org/apache/activemq/security/users.properties"
              org.apache.activemq.jaas.properties.group="org/apache/activemq/security/groups.properties";
      };
      

      Attachments

        Activity

          People

            dejanb Dejan Bosanac
            dejanb Dejan Bosanac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: