2 Replies Latest reply on Jun 24, 2011 7:49 AM by yoshi toll

    socket to http(post)

    yoshi toll Newbie


      In my project,

      The data is received with JbossRemoting socket, and the data is transmitted to outside of ESB with HTTP(POST).


      It fails to transmit the data with HTTP(POST).

      HTTPrequest body is null, HTTPServlet gets.(but, the character string of socket is sent to the servlet.)


      I think HTTPServlet can not receive body of the HTTP request. (HTTPrequest body is not normaly sent?)


      How can I normally send HTTP request body?



      My jboss-esb:jbossesb-server-4.9


      My jboss-esb.xml:

      <?xml version = "1.0" encoding = "UTF-8"?>





              <jbr-provider name="JBR-Socket" protocol="socket" host="localhost">

                  <jbr-bus busid="Socket-1" port="8888" />




              <service category="MyServiceCategory" name="MyWSProducerService" description="WS Frontend speaks natively to the ESB">


                      <jbr-listener name="Socket-Gateway" busidref="Socket-1" is-gateway="true"/>


                  <actions mep="RequestResponse">

                      <action name="httprouter" class="org.jboss.soa.esb.actions.routing.http.HttpRouter">

                          <property name="endpointUrl" value="http://localhost:8280/test/hello" />

                          <property name="method" value="POST" />






        • 1. Re: socket to http(post)
          Tom Cunningham Master

          If you stick a SystemPrintln action in front of the router, are you seeing any input coming into the ESB?


          Also, you take a look at the couple of quickstarts which use the HttpRouter (huge-split-enrich-transform-route and https_2way_ssl).

          1 of 1 people found this helpful
          • 2. Re: socket to http(post)
            yoshi toll Newbie

            hi, tom.


            This problem was solved.


            i get sending messages by TCPmon.


            and , I found the socket message being sent to the servlet.


            the servlet cannot get the value by HttpServletRequest.getParameter("key").

            but , the servlet can get InputStream by HttpServletRequest.getInputStream.


            I make the servlet analyze inputStream.

            And, can get the "value"  in  string of "Key=value".