I guess I'm confused about your previous statements:

>  Clebert suggested I look under examples/features/standard/security.  I did,
>  but the example is for ActiveMQ, so I didn't pursue it.  Another suggestion,
>  is update the example folders with pure Artemis examples.

The example in examples/features/standard/security is for Artemis.  To be 
clear, Artemis is an ActiveMQ broker so there may be some confusion here over 
wording.  Moreover, I don't know of any example shipped with Artemis that isn't 
for Artemis in one way or another.

Regarding your actual problem...The broker.xml and the user/role properties 
files used by the example are only part of what you need.  Do you also have a 
properly configured bootstrap.xml and login.config?  If you run the example 
(using 'mvn clean verify') you should see those files in the target/server0/etc 
directory where the example executes.  The security documentation [1] discusses 
both of these in the "JAAS Security Manager" section.


Justin

[1] http://activemq.apache.org/artemis/docs/1.2.0/security.html

----- Original Message -----
From: "spruitt" <steve.pru...@hp.com>
To: users@activemq.apache.org
Sent: Friday, January 15, 2016 10:33:26 AM
Subject: Re: basic security tag in bootstrap.xml

I tried the security example at \examples\features\standard\security as
suggested by Clebert. I copied the the broker.xml and the user / role
property files to my broker install.  I ran the example code and I still get
the same problem.

Exception in thread "main" javax.jms.JMSSecurityException: AMQ119031: Unable
to validate user

I fail at:

// Step 6. bill makes a good connection.
billConnection = createConnection("bill", "activemq", cf);
billConnection.start();

There is something fundamentally wrong with how I am going about this. 
Perhaps there is something basic you think I know about, but I don't.    But
with a vanilla broker setup and simple example, I don't see why I am getting
this problem.

Thanks in advance.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/basic-security-tag-in-bootstrap-xml-tp4705994p4706045.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to