Both of the exeception messages below are from the Artemis JMS client, showing it failing to authenticate in similar manner to what you were presumably seeing from the Qpid JMS client beforehand. I'd again assume this is a result of the bootstrap issues mentioned in your other thread, and I'd expect both clients to have issues until that is resolved.
As clebert mentioned, the Artemis JMS client does not use AMQP as its protocol and so didn't understand the amqp scheme in the URI configuration you were specifying in your earlier attempts at using it. That URI configuration actually being from the Qpid JMS client, which does use AMQP and does use that scheme in its config. There are examples of the various ways to configure/use the Qpid client via JNDI in its configuration docs, with the examples that ship with the Qpid client demonstrating the first of those. For the current release docs see: http://qpid.apache.org/releases/qpid-jms-0.7.0/docs/index.html Robbie On 14 January 2016 at 14:27, spruitt <steve.pru...@hp.com> wrote: > That is the code I started with. But I get: > > Exception in thread "main" javax.jms.JMSSecurityException: AMQ119031: Unable > to validate user > > So next I started trying: > > connection = connectionFactory.createConnection(user, pw); > > But I still get: > > Exception in thread "main" javax.jms.JMSSecurityException: AMQ119031: Unable > to validate user > > The user is defined in the Artemis property files. I tried many things > trying to get past this. I turned security off and the sample worked ok. > So I know the broker is running fine. > > After giving up on this example code, I switched over to a naming context to > see if I could find a path to get this code running. I found this example > code and I found ActiveMQInitialContextFactory in > artemis-jms-client-1.2.0.jar. But it gives the error in the original post: > > Properties p = new Properties(); > p.put("java.naming.factory.initial", > "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); > p.put("connectionFactory.ConnectionFactory", > "amqp://localhost:5672&amqp.vhost=localhost"); > p.put("queue.queue/exampleQueue", "exampleQueue"); > initialContext = new InitialContext(p); > : > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Schema-amqp-not-found-tp4705950p4705988.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.