Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5537

tcp transport problem: multithread blocking sending doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • TCP transport
    • None
    • jdk1.5, axis2 1.2, tomcat 6.0

    Description

      I create a webservices to send datas, and http,jms transport works fine with multithread sending, but not for tcp.
      TCP uses ws-addressing in both client and server sides, and it works fine in single thread. In the case of multithread,
      e.g.,
      1. a thread T1 created to send data D1, use a ServiceClient object in blocking way(sendReceive())
      2. meanwhile, another thread T2 created to send data D2
      3. T1 sent the data and has not received the reply;(need more time)
      4. T2 sent the data and received the reply;(T2 works OK)
      5. T1 throws a Exception: Socket output is already shutdown

      I use the seperator listener by options.setUseSeparateListener(true) and similarlly "socket shutdown" exception
      My question is:
      when using two seperate ServiceClient, there should be two socket connection. It works fine for http and jms, but why not work for
      tcp? Is there something I missed when engaged ws-addressing or some bugs there?

      Attachments

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            yattie Yattie Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: