pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Schema name in Java EE app server datasource configuration?
4+ messages / 3 participants
[nested] [flat]

* Schema name in Java EE app server datasource configuration?
@ 2019-01-22 13:08  hostalp@post.cz
  0 siblings, 2 replies; 4+ messages in thread

From: hostalp@post.cz @ 2019-01-22 13:08 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org


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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Schema name in Java EE app server datasource configuration?
@ 2019-01-22 13:49  Philippe Marschall <philippe.marschall@netcetera.com>
  parent: hostalp@post.cz
  1 sibling, 0 replies; 4+ messages in thread

From: Philippe Marschall @ 2019-01-22 13:49 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Schema name in Java EE app server datasource configuration?
@ 2019-01-22 14:00  pm@netcetera.ch
  parent: hostalp@post.cz
  1 sibling, 1 reply; 4+ messages in thread

From: pm@netcetera.ch @ 2019-01-22 14:00 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Schema name in Java EE app server datasource configuration?
@ 2019-01-22 14:10  hostalp@post.cz
  parent: pm@netcetera.ch
  0 siblings, 0 replies; 4+ messages in thread

From: hostalp@post.cz @ 2019-01-22 14:10 UTC (permalink / raw)
  To: pgsql-jdbc@lists.postgresql.org


That's what I'd normally do, however in this case I'm supposed to use data 
source properties serverName, databaseName, portNumber instead of the URL 
(see https://jdbc.postgresql.org/documentation/head/ds-cpds.html ) so it has
to be done differently (if there's a chance to specify it this way at all).




---------- Original Message ----------
From: pm@netcetera.ch
To: pgsql-jdbc@lists.postgresql.org
Sent: 22. 1. 2019 15:01:06
Subject: Re: Schema name in Java EE app server datasource configuration? 
"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 


"

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-01-22 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 13:08 Schema name in Java EE app server datasource configuration? hostalp@post.cz
2019-01-22 13:49 ` Philippe Marschall <philippe.marschall@netcetera.com>
2019-01-22 14:00 ` pm@netcetera.ch
2019-01-22 14:10   ` hostalp@post.cz

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox