Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 59350 invoked from network); 16 Oct 2009 20:01:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 20:01:54 -0000 Received: (qmail 103 invoked by uid 500); 16 Oct 2009 20:01:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 99975 invoked by uid 500); 16 Oct 2009 20:01:54 -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 99965 invoked by uid 99); 16 Oct 2009 20:01:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 20:01:54 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 20:01:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58C6E234C045 for ; Fri, 16 Oct 2009 13:01:31 -0700 (PDT) Message-ID: <2061963246.1255723291348.JavaMail.jira@brutus> Date: Fri, 16 Oct 2009 13:01:31 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2311) client can't be used with different ws security users In-Reply-To: <790888631.1245767227478.JavaMail.jira@brutus> 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/CXF-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-2311. ------------------------------ Resolution: Fixed Fix Version/s: 2.2.5 Assignee: Daniel Kulp > client can't be used with different ws security users > ----------------------------------------------------- > > Key: CXF-2311 > URL: https://issues.apache.org/jira/browse/CXF-2311 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.2.1, 2.2.2 > Environment: webservice client > ws-security authentication > stateless session bean in an application server (JBoss) > Reporter: Sven Reinhardt > Assignee: Daniel Kulp > Priority: Blocker > Fix For: 2.2.5 > > Original Estimate: 240h > Remaining Estimate: 240h > > - in a managed environment such as an application server it is impossible to use a generated webservice client with ws-security authentication with different users > - the client seems to be a singleton and the WSS4JOutInterceptor is attached to the client, so it can't be changed for a single request without changing it for other callers > - so the current implementation adds a kind of state to the client which the webservice dosn't have > - there is no real request context for a single request to submit the ws-security credentials to a potential context sensitive security interceptor > -creating a client for everey request, after removing the client from the factory > > jaxWsProxyFactoryBean.getClientFactoryBean().setClient(null); > jaxWsProxyFactoryBean.create(); > > results in a heavy memory loss > -possible solution: create a by request context and add to generated clients, create a context sensitive ws-security interceptor -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.