2 Replies Latest reply on Nov 11, 2004 3:24 AM by charleswong8

    JMS Username and Password

    charleswong8 Newbie

      When I start jboss, I always get the following error message:

      ---
      11:01:19,625 WARN [JMSContainerInvoker] JMS provider failure detected:javax.jms.JMSSecurityException: User: myuser is NOT authenticated at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.ja
      va:232)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSe
      curityInterceptor.java:51)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingIntercepto
      r.java:781)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.ja
      va:287)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
      at org.jboss.mq.Connection.authenticate(Connection.java:876)
      at org.jboss.mq.Connection.(Connection.java:238)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:49)
      at org.jboss.mq.SpyXAConnection.(SpyXAConnection.java:38)
      at org.jboss.mq.SpyXAConnectionFactory.createXAQueueConnection(SpyXAConn
      ectionFactory.java:135)
      at org.jboss.jms.ConnectionFactoryHelper.createQueueConnection(Connectio
      nFactoryHelper.java:67)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:604)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:674)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.o
      nException(JMSContainerInvoker.java:1173)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvok
      er.java:686)
      ---

      My configuration in jboss.xml is like the following:
      ---

      <ejb-name>JMSSFEJB</ejb-name>
      <jndi-name>ejb/JMS</jndi-name>
      <mdb-user>myuser</mdb-user>
      <mdb-passwd>myuser</mdb-passwd>
      <resource-ref>
      <res-ref-name>jdbc/myDB</res-ref-name>
      <jndi-name>java:PostgresDS</jndi-name>
      </resource-ref>

      ---

      I wonder whether I also need to configure other file(s) in order to have "myuser" as the username and password when using JMS.

      If anyone has an idea, please reply. Thanks in advance!