1 Reply Latest reply on Nov 3, 2002 2:59 PM by venkat

    Queue Connection  Problem

    Tan Liqiu Newbie

      I have read all for articles about queue connection problem in this forum ,but i still cann't solve my queue connection problem . Your help is highly appreciated .
      I use Jboss3.03 and Jdk1.4 .
      the error messge :
      [java] Exception occurred: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Option unsupported by pro
      tocol: connect)
      [java] Exception occurred: org.jboss.mq.SpyJMSException: Cannot authenticat
      e user; - nested throwable: (java.net.SocketException: Option unsupported by pro
      tocol: connect)


      The sourcode is following:



      try {
      jndiContext = new InitialContext();
      } catch (NamingException e) {
      System.out.println("Could not create JNDI " +
      "context: " + e.toString());
      System.exit(1);
      }
      try {
      queueConnectionFactory = (QueueConnectionFactory)
      jndiContext.lookup("ConnectionFactory");
      queue = (Queue) jndiContext.lookup("queue/testQueue");
      } catch (NamingException e) {
      System.out.println("JNDI lookup failed: "
      + e.toString());
      System.exit(1);