Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 59041 invoked from network); 12 Oct 2008 14:25:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2008 14:25:05 -0000 Received: (qmail 13665 invoked by uid 500); 12 Oct 2008 14:25:05 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 13644 invoked by uid 500); 12 Oct 2008 14:25:05 -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 13633 invoked by uid 99); 12 Oct 2008 14:25:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Oct 2008 07:25:04 -0700 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; Sun, 12 Oct 2008 14:24:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A963234C218 for ; Sun, 12 Oct 2008 07:24:44 -0700 (PDT) Message-ID: <963617551.1223821484304.JavaMail.jira@brutus> Date: Sun, 12 Oct 2008 07:24:44 -0700 (PDT) From: "Benson Margulies (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1857) ServiceFactoryBean should not call createInvoker() twice if its invoker does not be set In-Reply-To: <1523308221.1223818247432.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638849#action_12638849 ] Benson Margulies commented on CXF-1857: --------------------------------------- While you are here, how about CXF-1807? > ServiceFactoryBean should not call createInvoker() twice if its invoker does not be set > --------------------------------------------------------------------------------------- > > Key: CXF-1857 > URL: https://issues.apache.org/jira/browse/CXF-1857 > Project: CXF > Issue Type: Improvement > Affects Versions: 2.0.3, 2.0.4, 2.0.5, 2.1, 2.0.6, 2.1.1, 2.0.7, 2.0.8, 2.1.2 > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.1.3, 2.2 > > > public Server create() { > try { > applyExtraClass(); > if (serviceBean != null && getServiceClass() == null) { > setServiceClass(ClassHelper.getRealClass(serviceBean)); > } > if (invoker != null) { > getServiceFactory().setInvoker(invoker); > } else if (serviceBean != null) { > // we should set the invoker here > getServiceFactory().setInvoker(createInvoker()); > } > Endpoint ep = createEndpoint(); > server = new ServerImpl(getBus(), > ep, > getDestinationFactory(), > getBindingFactory()); > if (ep.getService().getInvoker() == null) { > if (invoker == null) { > ep.getService().setInvoker(createInvoker()); > } else { > ep.getService().setInvoker(invoker); > } > } > if (start) { > server.start(); > } > } catch (EndpointException e) { > throw new ServiceConstructionException(e); > } catch (BusException e) { > throw new ServiceConstructionException(e); > } catch (IOException e) { > throw new ServiceConstructionException(e); > } > if (serviceBean != null) { > initializeAnnotationInterceptors(server.getEndpoint(), > ClassHelper.getRealClass(getServiceBean())); > } else if (getServiceClass() != null) { > initializeAnnotationInterceptors(server.getEndpoint(), getServiceClass()); > } > applyFeatures(); > return server; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.