activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdul Alhazred <>
Subject Re: activemq and jaas
Date Fri, 15 Dec 2006 15:18:01 GMT

The way I did it (and there may well be other ways depending on what you want
to do...) is:

I created a class which implements You
may be able to use an existing one if you
have one that does what you want. You'll probably also want to implement a
CallbackHandler which just returns 
credentials. IIRC I found a pretty good starting point from some example
code by Paul Feuer and John Musser. Sorry I don't have the URL handy, but
I'm sure you can dig it up. 

Then you'll need a login.conf, probably in $ACTIVEMQ_HOME/conf something

ets-domain {
   com.tradedesksoftware.rdbmslogin.RdbmsLoginModule required debug="true"
and then in activemq.xml:

		  <!-- Configure a JAAS authentication domain to control access to queues
and topics, see also login.conf -->
		  <jaasAuthenticationPlugin configuration="ets-domain" />
						  <authorizationEntry queue=">" read="administrator"
write="administrator" admin="administrator" />
						  <authorizationEntry topic=">" read="administrator"
write="administrator" admin="administrator" />
						  <authorizationEntry topic="ActiveMQ.Advisory.>" read="administrator"
write="administrator" admin="administrator" />

Naturally you'll have to create the configuration you need. This seemed to
work pretty well for us, we were able to auth
against a set of database tables using this technique. 

Ken Gallo wrote:
> Hi,
> Refer to this link:
> HTH,
> Ken
> Guillaume Evrard wrote:
>> hello all!
>> could anyone help me in using jaas with activemq please? i'm not sure to 
>> understand how to do this...
>> guillaume

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message