Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 618C3182BC for ; Fri, 3 Jul 2015 23:40:05 +0000 (UTC) Received: (qmail 73661 invoked by uid 500); 3 Jul 2015 23:40:05 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 73510 invoked by uid 500); 3 Jul 2015 23:40:04 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 73500 invoked by uid 99); 3 Jul 2015 23:40:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2015 23:40:04 +0000 Date: Fri, 3 Jul 2015 23:40:04 +0000 (UTC) From: "Hiranya Jayathilaka (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5537) tcp transport problem: multithread blocking sending doesn't work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613511#comment-14613511 ] Hiranya Jayathilaka commented on AXIS2-5537: -------------------------------------------- TCP transport went through an overhaul after this issue was raised. This scenario works correctly now. > tcp transport problem: multithread blocking sending doesn't work > ---------------------------------------------------------------- > > Key: AXIS2-5537 > URL: https://issues.apache.org/jira/browse/AXIS2-5537 > Project: Axis2 > Issue Type: Bug > Components: TCP transport > Environment: jdk1.5, axis2 1.2, tomcat 6.0 > Reporter: Yattie Yang > > 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? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org