I'm trying to connect a test queue created in jboss 7.1.1.final standalone(hornetq) but it throws exception: Sep 6, 2013 12:18:00 PM org.jboss.remoting3.remote.RemoteConnection handleException
ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
Added a user with applicationrealm and credentials are correct, verified application-user.properties under standalone/configuration.
qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
qcon =qconFactory.createQueueConnection("jmsuser","password123");
System.out.println("here..2:"+qcon);
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queue = (Queue) ctx.lookup(queueName);
qsender = qsession.createSender(queue);
please ignore this, it was due to wrong credentials as exactly error says.