activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Douthit (JIRA)" <>
Subject [jira] Created: (AMQ-2007) XBean plugins override custom plugins instantiated with "plugins" attribute for broker
Date Wed, 19 Nov 2008 18:26:05 GMT
XBean plugins override custom plugins instantiated with "plugins" attribute for broker

                 Key: AMQ-2007
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.1.0
         Environment: tested on Windows XP PC
            Reporter: Barbara Douthit
            Priority: Minor

I am reporting what Dejan Bosanac has called a bug.  This originated as the question/answers
that follow:

I am trying to use my custom authenticationPlugin (which installs a SimpleAuthenticationBroker)
along with an XML definition for the authorizationPlugin as follows in the activemq.xml file:

   <bean id="MYAuthenticationPlugin" class="com.someplace.MYAuthenticationPlugin"/>

   <broker xmlns="" brokerName="localhost" dataDirectory="${activemq.base}/data"


      <authorizationEntry queue=">" read="ADMIN" write="ADMIN" admin="ADMIN" /> 
      <authorizationEntry queue="TOOL.>" read="USER" write="USER" admin="ADMIN" />

      <authorizationEntry topic=">" read="ADMIN" write="ADMIN" admin="ADMIN" /> 
      <authorizationEntry topic="TOOL.>" read="USER" write="USER" admin="ADMIN" />

      <authorizationEntry topic="ActiveMQ.Advisory.>" read="ADMIN,USER" 
          write="ADMIN,USER" admin="ADMIN,USER"/> 

<tempDestinationAuthorizationEntry read="tempDestinationAdmins" 
write="tempDestinationAdmins" admin="tempDestinationAdmins"/> 




The problem I have is when I define <plugins>, it takes over and MYAuthenticationPlugin
isn't installed.  Is there some way to put "two" plugins in the defintion for the <broker>?
 Or is there a way I can refer to MYAuthenticationPlugin in the <plugins> section? 
I have tried a lot of things with no success getting both of there pieces of the security

Any ideas would be greatly appreciated, 


 Re: authorizationPlugin and authenticationPlugin  by Dejan Bosanac-3 Nov 18, 2008; 07:06am
:: Rate this Message:    - Use ratings to moderate (?)

Reply | Reply to Author | Print | View Threaded | Show Only this Message 
It seems there is a bug in that XBean plugins override custom plugins 
instantiated with "plugins" attribute. Can you raise a Jira issue for this? 


Dejan Bosanac 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message