activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3244) Enable PropertiesLoginModule JAAS module to optionally cache values in memory
Date Tue, 05 Apr 2011 10:27:14 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015836#comment-13015836
] 

Dejan Bosanac commented on AMQ-3244:
------------------------------------

Update: additionally with svn revision 1088955, now a default behavior is that module will
check for the timestamps of the users and groups files and reload them if they changed.

This is an optimal behavior since it shouldn't affect performances and doesn't require broker
to be restarted on file changes.

Also, reload=false is now default value and use reload=true only if you want to explicitly
reload files on every connection.

> Enable PropertiesLoginModule JAAS module to optionally cache values in memory
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-3244
>                 URL: https://issues.apache.org/jira/browse/AMQ-3244
>             Project: ActiveMQ
>          Issue Type: Improvement
>    Affects Versions: 5.4.2
>            Reporter: Dejan Bosanac
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>
> 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:
> {code}
> 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";
> };
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message