You can point your broker to an xml configuration file, which includes a simpleAuthenticationPlugin as follows.
<plugins> <!-- use the simpleAuthenticationPlugin instead of JAAS --> <simpleAuthenticationPlugin> <!-- Define all users along with their passwords and the groups --> <users> <authenticationUser username="system" password="manager" groups="users,admins"/> <authenticationUser username="user" password="password" groups="users"/> <authenticationUser username="guest" password="password" groups="guests"/> </users> </simpleAuthenticationPlugin> </plugins> Also see http://activemq.apache.org/security.html Joe Rudi23 wrote: > > Hello, > > in my application I start an embedded broker as follows: > > BrokerService broker = new BrokerService(); > broker.addConnector("tcp://localhost:61616"); > broker.start(); > > The broker starts up and I can use it both on localhost and remote. > Everything is fine so far. > > Now I would like to enforce an authentication of the clients. > At the moment I'm using connectionFactory.createConnection(); on the > client to get a connection to the broker. > Can you tell me, how I must configure the broker, so that the client must > use connectionFactory.createConnection(String username, String password); > to obtain a connection? > > > Thank you in advance, > Rudi > -- View this message in context: http://www.nabble.com/Authentication-of-clients-tp15016858s2354p15020397.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.