3 Replies Latest reply on Nov 19, 2005 5:02 AM by Veronym Kroun

    Configuring username and password of JMS ConnectionFactory

    Veronym Kroun Newbie

      I'm trying to change the default username and password ('guest', 'guest') of JMS ConnectionFactory.

      I edited the security domain for JBossMQ in conf/login-config.xml:

       <application-policy name = "jbossmq">
       <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
       flag = "required">
       <module-option name = "principal">new</module-option>
       <module-option name = "userName">new</module-option>
       <module-option name = "password">new</module-option>
       <module-option name = "managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>

      I do connect to the ConnectionFactory etc., but I cannot send the message. I get the following exception:

      javax.jms.JMSSecurityException: Connection not authorized to addMessages to destination: A

      What else should I configure?

      Thank in advance