Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A01CD4AD for ; Thu, 4 Oct 2012 09:22:51 +0000 (UTC) Received: (qmail 6165 invoked by uid 500); 4 Oct 2012 09:22:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 6018 invoked by uid 500); 4 Oct 2012 09:22:50 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 5983 invoked by uid 99); 4 Oct 2012 09:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 09:22:48 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of soggie@gmail.com designates 209.85.220.52 as permitted sender) Received: from [209.85.220.52] (HELO mail-pa0-f52.google.com) (209.85.220.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 09:22:40 +0000 Received: by mail-pa0-f52.google.com with SMTP id hz10so370495pad.11 for ; Thu, 04 Oct 2012 02:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=y7Qnrtbg5HeGKaiOqyBdtgto7IWqn+Hymk7vqdi9Fng=; b=Or47nt/A1hb5ZWyqXkHaEFwQ76MMs9ILAkANPs6MZPrLZfLY4QDYOhY6sy9eiS2LMF OHcQztCS+2an+PzMN5LCxjFO46WZhbBJsHwhs3FDmsy/iSFXb81muzsT12+oMyu8EQPE GII0TXJHYBwQDko8ABNxMpPGiHVjnw4hlsYae7IE+88muA3ojEbBHJkEWRbQUMNQ27CS lDdKpr+wQ26O1Hg6UUAEzmUJelyVqDqD2ebLssC8/pMa1Mb1rWB+oxhjIlH6Qtdoa5fS aGrjsk/wUKQ2Y418vOO85oWFJSr5TMk+h6i4yXXb9+MYfYKLBEu1Y84qF23jC68cLfC3 sKXg== Received: by 10.66.88.197 with SMTP id bi5mr11689223pab.58.1349342539134; Thu, 04 Oct 2012 02:22:19 -0700 (PDT) Received: from [10.0.1.62] ([175.139.142.26]) by mx.google.com with ESMTPS id pw2sm2413313pbb.59.2012.10.04.02.22.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 02:22:18 -0700 (PDT) Date: Thu, 4 Oct 2012 17:22:14 +0800 From: Ruben LZ Tan To: dev@couchdb.apache.org Message-ID: <20C3A734FD3040EFB00956312D2022F1@gmail.com> In-Reply-To: <1349342250573-7581161.post@n2.nabble.com> References: <1347965265299-7580919.post@n2.nabble.com> <1349340898251-7581159.post@n2.nabble.com> <6E071065362945AAA9B88F2896381161@gmail.com> <1349342250573-7581161.post@n2.nabble.com> Subject: Re: How to connect CouchDB from Tomcat with jquery not any javaProgram X-Mailer: sparrow 1.6.3 (build 1172) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="506d5546_2ae8944a_11e" --506d5546_2ae8944a_11e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not really a sys admin so I'm not so sure of the exact way to do it, unfortunately. But just think of CouchDB as a webserver. You put CouchDB in say, a AWS instance, and you can connect to it locally, right? Via curl and such. Now you have your app in another server, how do you access your CouchDB? You can't, because there's no way to reach it since the CouchDB "server" only exists in that AWS instance. If I understand this correctly, you can expose a port in your AWS instance to redirect to your CouchDB's port, which will then allow you to access it from anywhere in the world using curl or browser. Not sure if this helps. I am terrible at explaining stuff like this. :/ Thanks, Ruben Tan On Thursday, October 4, 2012 at 5:17 PM, lenin wrote: > how to do without reverse proxy? > can u give a code to do that.... > > > > -- > View this message in context: http://couchdb-development.1959287.n2.nabble.com/How-to-connect-CouchDB-from-Tomcat-with-jquery-not-any-javaProgram-tp7580919p7581161.html > Sent from the CouchDB Development mailing list archive at Nabble.com (http://Nabble.com). > > --506d5546_2ae8944a_11e--