5 Replies Latest reply on Nov 18, 2008 9:31 AM by Kevin Conner

    http-listener - where are the parameters?

    mbucknam Newbie

      How do you access the properties from a message delivered by the http-listener

      call:http://localhost:8764/?myparameter=myvalue&myparameter2=foo


      In message action:

      message.getBody().get() returns null
      message.getProperties() does not contain them

      I can't find either parameter

        • 1. Re: http-listener - where are the parameters?
          Paul Robinson Master

          Hello,

          I'm also having this problem. I have a http-listener on port 9000, i send it a request to the following url:

          http://qa-01:9000/echo?wsdl

          I have attached a debugger to the first action on this service and then had a poke around inside the message it receives. I can find the "Path" property (set to "echo"), but I can't seem to find the query string.

          My debugger gives my the toString on the message and it looks like this:

          message: [ JBOSS_XML ]
          header: [ To: InVMEpr [ PortReference < <wsa:Address invm://4174617463686564455342314854545047617465776179/false?false#10000/>, <wsa:ReferenceProperties jbossesb:passByValue : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/invm/> > ] ReplyTo: InVMEpr [ PortReference < <wsa:Address invm://thread-152/>, <wsa:ReferenceProperties jbossesb:passByValue : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/invm/> > ] ]
          context: [ ]
          body: [ objects: {} ]
          fault: [ ]
          attachments: [ Named:{}, Unnamed:[] ]
          properties: [ {org.jboss.soa.esb.message.time.dod=Tue Nov 18 13:25:11 GMT 2008, HttpVersion=HTTP/1.1, connection=keep-alive, org.jboss.soa.esb.deliver.to=AtatchedESB1:HTTPGateway, org.jboss.soa.esb.message.time.dob=Tue Nov 18 13:25:31 GMT 2008, accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, MethodType=GET, Path=/echo, user-agent=Java/1.6.0_06, org.jboss.soa.esb.message.source=PortReference < jms://qa-01:1099/queue/DeadMessageQueue >, org.jboss.soa.esb.message.byte.size=3555, org.jboss.soa.esb.message.transport.type=JMS, host=qa-01:9000} ]


          You will notice that the string "wsdl" does not appear in here. Maybe the toString doesn't list everything present in the message; however I have had a click through the object tree of the message in my debugger and I can't seem to find the query string.

          Any ideas?

          Thanks a lot,

          Paul.

          • 2. Re: http-listener - where are the parameters?
            Daniel Bevenius Master

            Hi,

            This sounds like https://cloud.prod.atl2.jboss.com/jira/browse/JBESB-1958
            Can you take a look at the above jira?

            Regards,

            /Daniel

            • 3. Re: http-listener - where are the parameters?
              Tom Fennelly Master

              I can say for certain that JBR does not support parameters :-(

              • 4. Re: http-listener - where are the parameters?
                Paul Robinson Master

                Thanks for the quick reply...

                Here's a public url so everyone can track the issue:

                https://jira.jboss.org/jira/browse/JBESB-1958

                I notice that this has been fixed in JBoss Remoting and is intended to be supported in ESB 4.x. With 4.x being "further 4 work". From looking at Jira, "4.x" looks like a bucket for v4 issues that haven't been assigned a real release.

                Is this correct, and can you give us any idea as to when JBESB-1958 might be resolved?

                Thanks a lot,

                Paul.

                • 5. Re: http-listener - where are the parameters?
                  Kevin Conner Master

                  Hiya Paul.

                  We are planning the ESB 4.5 release now and will shortly be looking through the 4.x issues to see what can be included into that release.

                  Kev