Hi Steve, I believe you are probably looking at either a config or broker issue of some sort. I just did the following:
- Downloaded Artemis 1.2.0 from http://activemq.apache.org/artemis/download.html - Created a broker instance, answering the prompts to set default user "admin" with password "password" and role "admin", and disable anonymous logins. - Started the broker as directed by the messages from the above. - Ran the HelloWorld example from the QpidJMS master unaltered, which then failed to authenticate as expected (since it was still trying guest:guest) - Changed HelloWorld to use admin:password, compiled and ran it again which then succeeded in authenticating. If you jsut did the above youd see that after it succeeded authenticating it failed to find the required queue, as I hadnt created it. From previous runs of the examples against Artemis I believe what I did was connect jconsole to the broker process and create a 'JMS queue' called "queue" on the broker using its 'JMS' -> 'Server' mbean operations. You also then need to update the queue nam ethe client uses (by changing the code to create the Queue object, or altering the jndi.properties file used by default) to be "jms.queue.queue" rather than just "queue" since Artemis uses prefixes in the address of its 'JMS queues'. Robbie On 14 January 2016 at 16:29, spruitt <[email protected]> wrote: > I'm trying to get the example HelloWorld executing. I am using Artemis as > the broker. > The problem is: > javax.jms.JMSSecurityException: Client failed to authenticate > > I only changed the two statics USER and PASSWORD to my broker admin user, > which has all rights. > If I turn security off, the broker executes ok. > > Thanks in advance. > > > > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/HelloWorld-user-authentication-tp7636607.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
