Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91FCA11304 for ; Sun, 4 May 2014 16:40:49 +0000 (UTC) Received: (qmail 11715 invoked by uid 500); 4 May 2014 16:40:47 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 11664 invoked by uid 500); 4 May 2014 16:40:47 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 11648 invoked by uid 99); 4 May 2014 16:40:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 16:40:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sberyozkin@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 16:40:40 +0000 Received: by mail-we0-f172.google.com with SMTP id k48so842732wev.17 for ; Sun, 04 May 2014 09:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ORwP3/ydSnv3tzkOCH2n6DF23hqmSsTOLs3vZrxdH7I=; b=Y4qJppAHL2zyEar3OIq0SXc0lJoFA7VIYFVELL7wsaULPd24+fpaZCvW8s7f+tuAAd 3bCZ2c+CRz7rOduF8hTH8YcvNXsebZOgIFbcjvylRX2DyPsCF7pYrQjlpUw3/Xchhgr8 2XnbmZ2a4LJhyuBrkPxJQVPigBr75Dl3tWfEP0KOrZGOHZ33Z7mTo6gkq6z9ZxmGk3KZ qYrFeiqWf3QJ5d5PaxMUpGBfPnePDkUEbCqRId2lwsuzRTR4nZ/aYVt962/uNRJqVTQ/ Jjksj46CYdoWd7cN/B8a+7PXENkSTIJCZuhTVL4Gj59h0vblff8xIDZCpvDgqs9Y0BW6 4hig== X-Received: by 10.194.171.167 with SMTP id av7mr23528643wjc.32.1399221619143; Sun, 04 May 2014 09:40:19 -0700 (PDT) Received: from [192.168.2.7] ([89.100.139.33]) by mx.google.com with ESMTPSA id ez5sm12657797wjd.9.2014.05.04.09.40.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 04 May 2014 09:40:17 -0700 (PDT) Message-ID: <53666D5D.3020809@gmail.com> Date: Sun, 04 May 2014 17:39:57 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: Possible to access resources in a jaxrs:server started from CXFServlet with local transport? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi On 03/05/14 09:03, Rice Yeh wrote: > Hi, > Is it possible to access resources in a jaxrs:server which started from > CXFServlet with local transport like what is described in > https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRS+Testing, where > the jaxrs:server is started with local protocol. I have this need because I > need to touch some resources before a request has come in. The biggest > problem for me is that I do not know the port the web server is listening > on, so I cannot use java.net.URL("http://localhost:...) connect to the > server itself. So you have say one HTTP jaxrs:server and one Local Transport jaxrs: server and would like to invoke the former from the latter ? Or do you have multiple HTTP jaxrs server endpoints and would like to use a local transport for communicating between these 2 endpoints ? Cheers, Sergey > > Rice >