1 Reply Latest reply on Aug 2, 2004 11:53 AM by dimitris

    Illegal StateException:Method Not allowed

    tibo_ruthie

      Hi there,
      I am stuck up at a point in my code where I'm using.....
      JBoss 3.2.5......for j2ee appl.

      Code showws....queConn = connFactory.createQueueConnection();
      queSession = queConn.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
      queConn.start();
      queReceiver = queSession.createReceiver(logQueue);
      queReceiver.setMessageListener(this);

      Now here....... setMessageListener throws error saying method not allowed with an illegal state exception...coz of which Im not able to move forward.
      Can anyone suggest a solution.
      Am I missing out somthnig on the xml config files ?

      Thanks....