Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D5D0B632BFC for ; Fri, 6 Feb 2009 11:54:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95176-08 for ; Fri, 6 Feb 2009 11:54:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 05B21632922 for ; Fri, 6 Feb 2009 11:54:10 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id CAC82A1E3; Fri, 6 Feb 2009 10:54:08 -0500 (EST) Date: Fri, 6 Feb 2009 10:54:08 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Andrew Lazarus cc: pgsql-jdbc@postgresql.org Subject: Re: getHost() In-Reply-To: <658101611.20090205214807@pillette.com> Message-ID: References: <1649425263.20090203135336@pillette.com> <658101611.20090205214807@pillette.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/15 X-Sequence-Number: 19290 On Thu, 5 Feb 2009, Andrew Lazarus wrote: > I wanted to instantiate a JPA/TopLink EntityManager with the same > host/database as an existing JDBC Connection. If not, then two > different objects have to search properties for the parameters. > Seems like you would also need to know the port number and the password as well. I doubt it's a good idea to be exposing the password, so I'm still not convinced there's a real good use for this. Kris Jurka