3 Replies Latest reply on Jul 17, 2006 6:56 AM by sailu

    Receive object in jboss

    sailu

      Hi,
      we are creating Receiver object like this

      QueueReceiver qReceiver = qSesTemp.createReceiver(qTemp, selectorTag);
      it is creating object like this in Jboss

      org.jboss.resource.adapter.jms.JmsQueueReceiver@1247c45


      But in case of weblogic the object is

      weblogic.jms.client.JMSConsumer@1c65037

      My problem is receiver is not able to receive any message in jboss.
      the same code is working in weblogic but in case of jboss it is not able to receive the message.


      My receive method is
      qConTemp.start();
      if(timeOutInSeconds == 0)
      timeOutInSeconds = 60;
      Message message = qReceiver.receive(timeOutInSeconds * 1000);

      it is waiting up to given time and simply throwing exception
      and the message is comming null

      but in weblogic it is working

      can any one help me .

        • 1. Re: Receive object in jboss

          This is the wrong forum for this post. This should be posted to JBossMessaging. I am moving this post there.

          • 2. Re: Receive object in jboss
            jaikiran

             

            it is waiting up to given time and simply throwing exception


            What is the exception that you are seeing? Post the stacktrace.

            message is comming null


            The message will be null if after waiting for 'n' milli seconds, the message is not received.

            Message message = qReceiver.receive(veryHighValue);


            or

            Message message = qReceiver.receive();


            and see if the message is received. This will help in understanding whether the receieve itself is not working or the timeout value is low



            • 3. Re: Receive object in jboss
              sailu

              The same code is working in weblogic in case of jboss it is not working

              I have given the time also u can see the code