How to configure allowClientLogin in EAP 6 ?

Solution Unverified - Updated -

Issue

  • I am trying to connect to a queue on JBoss from a remote client, but I am having a minor access issue:

I would like to be able to connect using a Context (as in http://www.jboss.org/quickstarts/eap/helloworld-jms/), ie. something like:

Properties p = new Properties();
...
p.put(javax.naming.Context.SECURITY_PRINCIPAL, "remoteuser");
p.put(javax.naming.Context.SECURITY_CREDENTIALS, "password");
...
final ConnectionFactory cf = (ConnectionFactory) new InitialContext(p).lookup("jms/RemoteConnectionFactory");
final Queue queue = (Queue) context.lookup(queueName);
final Connection connection = cf.createConnection();

but I can only get it to work if I explicit call with username/password:

cf.createConnection("remoteuser","password")

https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html-single/HornetQ_User_Guide/ section "29.6.1. Configuring Client Login" indicates that this could be obtained using allowClientLogin.

The question is:
How can I configure allowClientLogin (or similar) in standalone.xml ?

Please note that user/role stuff should be configured correctly since it works, when I pass username/password as parametes to createConnection.

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.x
  • Red Hat JBoss Fuse Service Works
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.