I\'m trying to create simply connect with ActiveMQ using JNDI.
Queue named \'example.A\'.
According ActiveMQ documentation touc
The problem is that you are explicitly creating the properties and passing them into the InitialContext constructor. This means the jndi.properties on the class path won't be read.
Your code should be something like:
Context context = new InitialContext();
ConnectionFactory connectionFactory = (ConnectionFactory) context.lookup("ConnectionFactory");
Queue queue = (Queue) context.lookup("MyQueue");