Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glwbk-0003Hb-MQ for pgsql-jdbc@arkaria.postgresql.org; Tue, 22 Jan 2019 14:00:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glwbj-0007y3-Ao for pgsql-jdbc@arkaria.postgresql.org; Tue, 22 Jan 2019 14:00:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glwbj-0007xe-1g for pgsql-jdbc@lists.postgresql.org; Tue, 22 Jan 2019 14:00:51 +0000 Received: from mail.netcetera.ch ([194.126.145.7] helo=mail.netcetera.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glwbb-0006lM-1a for pgsql-jdbc@lists.postgresql.org; Tue, 22 Jan 2019 14:00:49 +0000 Received: from xguard.netcetera.com (xguard.netcetera.com [192.168.8.150]) by mail.netcetera.com (8.14.7/8.14.1) with ESMTP id x0ME0dXq062608 for ; Tue, 22 Jan 2019 15:00:39 +0100 Received: from xguard (localhost [127.0.0.1]) by xguard.netcetera.com (Postfix) with ESMTP id A3572680AA3 for ; Tue, 22 Jan 2019 15:00:39 +0100 (CET) Authentication-Results: auth.opendkim.xorlab.com; dkim=none; dkim-atps=neutral Received: from netcetera.com (unknown [172.16.0.139]) by xguard.netcetera.com (Postfix) with ESMTPS id 983FE68753F for ; Tue, 22 Jan 2019 15:00:29 +0100 (CET) Received: from Philippes-MacBook.local ([172.19.1.141]) by netcetera.com (8.14.7/8.14.1) with ESMTP id x0ME0TPa003550 for ; Tue, 22 Jan 2019 15:00:29 +0100 From: pm@netcetera.ch Subject: Re: Schema name in Java EE app server datasource configuration? To: pgsql-jdbc@lists.postgresql.org References: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz> Message-ID: Date: Tue, 22 Jan 2019 15:00:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,UNPARSEABLE_RELAY autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sgaNetcetera List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Petr Have you tried adding currentSchema=SCHEMA_NAME to the connection URL [1]? either prefixed by ? or & depending on whether it is the first query parameter. [1] https://jdbc.postgresql.org/documentation/head/connect.html Cheers Philippe On 22.01.19 14:08, hostalp@post.cz wrote: > Hello, > I'm trying to configure a PostgreSQL data source at WebSphere > Application Server. > I defined a custom JDBC provider type and data source based on the > following description: > https://jdbc.postgresql.org/documentation/head/ds-cpds.html > > Now I need to specify a schema name in addition to all of that, but that > isn't documented there. I know there's a connection property > currentSchema, however is it possible to configure it for the JEE data > source? I may try some trial & error attempts to configure it somehow, > but perhaps you know how to do it properly right from the start? > > And in such case it would be useful to add it to the documentation. > > Best regards. > Petr