Eu estou tentando executar o código inicial do vídeo da aula 2 e estou recebendo a seguinte mensagem de erro:
Exception in thread "main" javax.naming.NamingException: Invalid broker URL
at org.apache.activemq.jndi.ActiveMQInitialContextFactory.getInitialContext(ActiveMQInitialContextFactory.java:67)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at br.com.gilberto.jms.TesteConsumidor.main(TesteConsumidor.java:10)
Estou com as libs: activemq-all-5.12 .jar javax.jms.jar
O arquivo jndi.properties está idêntico ao proposto no vídeo:
java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory
# Use the following property to configure the default connector
java.naming.provider.url = tcp://localhost:61616
# Use the following property to specify the JNDI name the connection factory
# should appear as.
#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry
# Register some queues in JNDI using the form:
# queue.[jndiName] = [physicalName]
queue.MyQueue = example.MyQueue
# Register some topics in JNDI using the form:
# topic.[jndiName] = [physicalName]
topic.MyTopic = example.MyTopic
Alguma dica de onde estou errando?