Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F9D8200C17 for ; Fri, 10 Feb 2017 10:04:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0E4F5160B69; Fri, 10 Feb 2017 09:04:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 565A1160B5B for ; Fri, 10 Feb 2017 10:04:48 +0100 (CET) Received: (qmail 72114 invoked by uid 500); 10 Feb 2017 09:04:47 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 72103 invoked by uid 99); 10 Feb 2017 09:04:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2017 09:04:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2650DC3484 for ; Fri, 10 Feb 2017 09:04:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, WEIRD_QUOTING=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Xh73Mthhxlyb for ; Fri, 10 Feb 2017 09:04:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7BBC65FE3A for ; Fri, 10 Feb 2017 09:04:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2C5E0E06B8 for ; Fri, 10 Feb 2017 09:04:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 437E721D9A for ; Fri, 10 Feb 2017 09:04:42 +0000 (UTC) Date: Fri, 10 Feb 2017 09:04:42 +0000 (UTC) From: "Dhawal (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-7246) PhaseInterceptorChain's Message is not passed to child threads. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Feb 2017 09:04:49 -0000 Dhawal created CXF-7246: --------------------------- Summary: PhaseInterceptorChain's Message is not passed to child threads. Key: CXF-7246 URL: https://issues.apache.org/jira/browse/CXF-7246 Project: CXF Issue Type: Bug Components: JAX-RS Affects Versions: 2.6.14 Reporter: Dhawal Hello, We put few information in Message through RequestHandler by doing PhaseInterceptorChain.getCurrentMessage.getExchange.put("",""); But when we create a new Threads from the thread which brings in request to the controller, those objects which are put in the Exchange are not available to new threads. The PhaseInterceptorChain has Message object which is ThreadLocal so the objects are not available to subsequent threads which are created so exploiting parallelism is quite painful once we store something in Exchange object. As a suggestion can we have Message object as optional between ThreadLocal and InheritableThreadLocal and via a configuration we can set that do we need to make available Message object to child threads. Thanks, Dhawal Patel -- This message was sent by Atlassian JIRA (v6.3.15#6346)