1 Reply Latest reply on Nov 12, 2004 11:07 AM by Adrian Brock

    multiple JMS providers at same time in Jboss?

    rajsoni Novice

      Can we use two JMS providers at the same time in JBoss I mean eg some MDB's using StdJMSPool and other's using queues from SonicMQJMSPool?

      If it's possible to use both pools at the same time,how the MDB is tied to a specific JMS provider?

      Is it by specifying the container-configuraion in standardjboss.xml and then using this configuration in jboss.xml eg like:

      <configuration-name>xyz Bean</configuration-name>

      In this case how the pool is tied to the configuration?

        • 1. JMS Cannot authenticate user ERROR
          Adrian Brock Master

          hi all,

          i am getting the occasional 'Cannot authenticate user' from a MessageBriveBean. The authenitication system is working fine. At this stage i am think the error is being produce when the system is under load, both memory and CPU.

          org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Socket closed)

          I have located the JBOSS source code where the exception is being generated in the org.jboss.mq.Connection class.

          Any ideas on how to correct the problem with code or config are most appreciated!

          * Authenticate a user
          * @param userName the user
          * @param password the password
          * @throws JMSException for any error
          protected void authenticate(String userName, String password) throws JMSException
          if (trace)
          log.trace("Authenticating user " + userName + " " + this);
          sessionId = serverIL.authenticate(userName, password);
          catch (JMSException ex)
          throw ex;
          catch (Exception e)
          throw new SpyJMSException("Cannot authenticate user", e);

          many thanks