activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandeep Chayapathi <sand...@wssource.com>
Subject Re: Master/Slave with authentication
Date Thu, 17 Aug 2006 19:01:38 GMT
Hi all,
 Anyone know the answer for this ? I too am facing the same problem. 
Moreover, I checked the xsd 
(http://people.apache.org/maven-snapshot-repository/incubator-activemq/incubator-activemq/4.1-SNAPSHOT/activemq.xsd.html)

does not mention about "userName" & "password" properties for broker.

- Sandeep

Eugene Prokopiev wrote:
> Hi,
>
> Is it possible to use brokers with authentication as master and slave?
>
> I have started master broker. Next I try to configure slave:
>
> <beans xmlns="http://activemq.org/config/1.0">
>
>         <broker name="m1" persistent="false" 
> masterConnectorURI="tcp://m0:5000" userName="admin1" password="pw1">
>
>         <transportConnectors>
>                 <transportConnector uri="tcp://localhost:5000"/>
>                 </transportConnectors>
>
>                 <persistenceAdapter>
>                 <memoryPersistenceAdapter/>
>                 </persistenceAdapter>
>
>                 <plugins>
>                 <jaasAuthenticationPlugin 
> configuration="activemq-domain" />
>                 <authorizationPlugin>
>                                 <map>
>                         <authorizationMap>
>                                         <authorizationEntries>
>                                 <authorizationEntry topic=">" 
> read="admins" write="admins" admin="admins" />
>                                                 <authorizationEntry 
> topic="messages.>" read="consumers" write="producers" 
> admin="producers,consumers,admins" />
>                                                 <authorizationEntry 
> queue="messages.>" read="consumers" write="producers" 
> admin="producers,consumers,admins" />
>                                 <authorizationEntry 
> topic="ActiveMQ.Advisory.>" read="producers,consumers" 
> write="producers,consumers" admin="producers,consumers"/>
>                                         </authorizationEntries>
>                         </authorizationMap>
>                         </map>
>             </authorizationPlugin>
>                 </plugins>
>
>
>     </broker>
>
> </beans>
>
> On starting it I got:
>
> Exception in thread "main" 
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'broker' defined in file 
> [/home/john/manager/conf/broker.xml]: Invocation of init method 
> failed; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'm0' defined in file 
> [/home/john/manager/conf/activemq.xml]: Error setting property values; 
> nested exception is 
> org.springframework.beans.NotWritablePropertyException: Invalid 
> property 'userName' of bean class 
> [org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
> 'userName' is not writable or has an invalid setter method. Does the 
> parameter type of the setter match the return type of the getter?
> Caused by: org.springframework.beans.factory.BeanCreationException: 
> Error creating bean with name 'm0' defined in file 
> [/home/john/manager/conf/activemq.xml]: Error setting property values; 
> nested exception is 
> org.springframework.beans.NotWritablePropertyException: Invalid 
> property 'userName' of bean class 
> [org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
> 'userName' is not writable or has an invalid setter method. Does the 
> parameter type of the setter match the return type of the getter?
> Caused by: org.springframework.beans.NotWritablePropertyException: 
> Invalid property 'userName' of bean class 
> [org.apache.activemq.xbean.XBeanBrokerService]: Bean property 
> 'userName' is not writable or has an invalid setter method. Does the 
> parameter type of the setter match the return type of the getter?
>
> But on this page http://activemq.org/site/masterslave.html userName 
> and password are described.
>
> Which AMQ version need I use for this params?
>
> -- 
> Thanks,
> Eugene Prokopiev
>


Mime
View raw message