Boy, getting a simple client working is a chore. Properties p = new Properties(); p.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); p.put("connectionFactory.ConnectionFactory", "amqp://localhost:5672"); p.put("queue.queue/exampleQueue", "exampleQueue"); initialContext = new InitialContext(p);
Results in: java.lang.NullPointerException: Schema amqp not found at org.apache.activemq.artemis.utils.uri.URIFactory.newObject(URIFactory.java:56) atorg.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory.createConnectionFactory(ActiveMQInitialCntextFactory.java:159) : Exception in thread "main" javax.naming.NamingException: Invalid broker URL at org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory.getInitialContext(ActiveMQInitialContexFactory.java:65) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) -- View this message in context: http://activemq.2283324.n4.nabble.com/Schema-amqp-not-found-tp4705950.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.