Por algum motivo não funcionou,
[standalone@localhost:9990 /] jms-queue add --queue-address=EmailQueue --durable --entries --headers --legacy-entries --selector--headers option has wrong value 'true'
[standalone@localhost:9990 /] jms-queue add --queue-address=EmailQueueWFLYCTL0155: 'entries' may not be null
[standalone@localhost:9990 /] jms-queue add --queue-address=EmailQueue --durable --entries --headers --legacy-entries --selector--headers option has wrong value 'true'
[standalone@localhost:9990 /] jms-queue add --queue-address=EmailQueue --entries=java:jms/queue/EmailQueueWFLYCTL0158: Operation handler failed: java.lang.RuntimeException: WFLYNAM0030: Illegal context in name: java:jms/queue/EmailQueue
[standalone@localhost:9990 /] jms-queue add --queue-address=EmailQueueWFLYCTL0155: 'entries' may not be null
Então fui no site da Redhat.Configurei da seguinte maneira: jms-queue add --queue-address=EmailQueue --entries=[queue/EmailQueue jms/queue/EmailQueue java:jboss/exported/jms/queue/EmailQueue]
Talvez eu tenha escrito algo errado.
Estou gostando bastante do curso, poderia ser maior!!
PS: Notei que meu JNDI name ficou "queue/EmailQueue". Após criar, tem uma maneira de alterar?