-
1. Re: JAAS Authentication for ActiveMQ in Fabric
iocanel Feb 1, 2013 5:16 AM (in response to alstsever_alain.saint-sever)If you store my.mq.users.properties under /fabric/configs/versions/1.0/profiles/xxx/ then all containers using xxx 1.0 profile will save it under etc/my.mq.users.cfg. So you could just point to that file instead.
Now directly referencing the zk node that holds the configuration using the zk: property handler is a smart thought. But I am not 100% sure how if activemq will pick any url or if it just expects a file, so I am not sure if it will work.
-
2. Re: JAAS Authentication for ActiveMQ in Fabric
alstsever_alain.saint-sever Feb 1, 2013 6:59 AM (in response to iocanel)I just did it again to be sure:
when I deploy a container (remote one) with a profile with my.mq.users.properties then there is no etc/my.mq.users.cfg file. Is it a bug?
On the other hand the config:list command displays:
Pid: my.is.mq.users
BundleLocation: null
Properties:
service.pid = my.is.mq.users
operator = operator
fabric.zookeeper.pid = my.is.mq.users
But without the file being copied into etc folder I cannot use the following configuration:
<jaas:config name="myRealm">
<jaas:module className="org.apache.activemq.jaas.PropertiesLoginModule" flags="required">
org.apache.activemq.jaas.properties.user = $\[karaf.base\]/etc/my.mq.users.cfg
org.apache.activemq.jaas.properties.group = $\[karaf.base\]/etc/my.mq.groups.cfg
</jaas:module>
</jaas:config>