You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by TraceyMacias <tr...@hamiltoncompany.com> on 2014/06/04 22:06:42 UTC
CreateConsumer BrokerException: User guest is not authorized
I am getting the BrokerException on CreateConsumer() for 'User guest is not
authorized to create: topic://MBS.EVENTS
I can create the ConnectionFactory() and the Connection object
I can create a session on the Connection and retrieve the destination for
the Topic via GetDestination()
I do not know how to set thye security (obviously) for guest ...
My class library (assembly) referencing the Apache.NMS.ActiveMQ has the
configuration
<configuration>
<defaultURI
value="activemq:tcp://127.0.0.1:61616?connection.AsyncClose=false">
<userName value="guest"/>
<passWord value="guest"/>
</defaultURI>
<openWireURI
value="activemq:tcp://127.0.0.1:61616?connection.AsyncClose=false">
<factoryParams>
</factoryParams>
<userName value="guest"/>
<passWord value="guest"/>
</openWireURI>
</configuration>
BUT where should this xml file live? or do I need a different file? and what
should the name be?
--
View this message in context: http://activemq.2283324.n4.nabble.com/CreateConsumer-BrokerException-User-guest-is-not-authorized-tp4681683.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: CreateConsumer BrokerException: User guest is not authorized
Posted by Christian Posta <ch...@gmail.com>.
May want to also check activemq authorization plugin:
http://activemq.apache.org/security.html
On Wed, Jun 4, 2014 at 1:06 PM, TraceyMacias <
tracey.macias@hamiltoncompany.com> wrote:
> I am getting the BrokerException on CreateConsumer() for 'User guest is not
> authorized to create: topic://MBS.EVENTS
> I can create the ConnectionFactory() and the Connection object
> I can create a session on the Connection and retrieve the destination for
> the Topic via GetDestination()
>
> I do not know how to set thye security (obviously) for guest ...
>
> My class library (assembly) referencing the Apache.NMS.ActiveMQ has the
> configuration
>
> <configuration>
> <defaultURI
> value="activemq:tcp://127.0.0.1:61616?connection.AsyncClose=false">
> <userName value="guest"/>
> <passWord value="guest"/>
> </defaultURI>
>
> <openWireURI
> value="activemq:tcp://127.0.0.1:61616?connection.AsyncClose=false">
> <factoryParams>
>
> </factoryParams>
> <userName value="guest"/>
> <passWord value="guest"/>
> </openWireURI>
> </configuration>
>
> BUT where should this xml file live? or do I need a different file? and
> what
> should the name be?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/CreateConsumer-BrokerException-User-guest-is-not-authorized-tp4681683.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta