Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 76886 invoked from network); 13 Nov 2009 18:00:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 18:00:03 -0000 Received: (qmail 96142 invoked by uid 500); 13 Nov 2009 18:00:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 96116 invoked by uid 500); 13 Nov 2009 18:00:03 -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 96024 invoked by uid 99); 13 Nov 2009 18:00:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 18:00:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 13 Nov 2009 18:00:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD277234C4C8 for ; Fri, 13 Nov 2009 09:59:39 -0800 (PST) Message-ID: <755701620.1258135179773.JavaMail.jira@brutus> Date: Fri, 13 Nov 2009 17:59:39 +0000 (UTC) From: "Karuna (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2534) ResourceInjector (CXF class) works on Fields (using Reflections API) rather than on methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org ResourceInjector (CXF class) works on Fields (using Reflections API) rather than on methods ------------------------------------------------------------------------------------------- Key: CXF-2534 URL: https://issues.apache.org/jira/browse/CXF-2534 Project: CXF Issue Type: Improvement Components: JAX-WS Runtime Affects Versions: 2.2.3 Environment: All env (windows, Linux) Reporter: Karuna In JAX-WS java-first webservice using CXF and Spring, Service Implementor class can not have custom annotations when the following @Resource is added to implementor class. @Resource private WebServiceContext webServiceContext; This is because in order to enable Spring-AOP, jaxws:endpoint XML config should be like this Because of this, since Spring works on proxies, somehow, @Resource (WebServiceContext ) is failing. This is because ResourceInjector (CXF class) works on Fields (using Reflections API) rather than on methods. If the accessing of WebServiceContext is done using Methods (Reflections API), it would not be a problem because proxies have methods too. So it appears that, any custom annotations in CXF implementor classes can not be added when @Resource is added. @Resource should be accessed using methods rather than at Fields. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.