Re: [h2] numServers internal use and clientInfo problem

2016-10-28 Thread Noel Grandin
it's internal in the sense that you can't override it by setting it explicitly - that's a safety feature, to prevent 
people accidentally sticking their own property with the same name in and then getting confused when they get a 
different value back out.


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] numServers internal use and clientInfo problem

2016-10-28 Thread Mert ÇALIŞKAN
ok thanks Noel, 
I have one question for clarification on this. Can you elaborate the case 
of having numServers defined as an internal property? If it's an internal 
property what's the reason behind setting it into client info?

28 Ekim 2016 Cuma 11:49:50 UTC+3 tarihinde Noel Grandin yazdı:
>
> I would be surprised if anyone else is using it. 
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] numServers internal use and clientInfo problem

2016-10-28 Thread Noel Grandin

I would be surprised if anyone else is using it.

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] numServers internal use and clientInfo problem

2016-10-28 Thread Mert ÇALIŞKAN
I can patch Payara. I can remove numServers from the clientInfo list and 
set to clientInfo's on JdbcConnection. But I don't know if you're the only 
db that uses that numServers property.

28 Ekim 2016 Cuma 09:59:03 UTC+3 tarihinde Noel Grandin yazdı:
>
> Unfortunately, you can pretty much either patch H2 or patch Payara.
>
> Payara should really not be doing that, that's very dodgy behaviour.
>
> I suspect it is doing it to work around some other databases behaviour, in 
> which case it should probably be checking and only doing it for that 
> database.
> ​
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] numServers internal use and clientInfo problem

2016-10-27 Thread Noel Grandin
Unfortunately, you can pretty much either patch H2 or patch Payara.

Payara should really not be doing that, that's very dodgy behaviour.

I suspect it is doing it to work around some other databases behaviour, in
which case it should probably be checking and only doing it for that
database.
​

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


[h2] numServers internal use and clientInfo problem

2016-10-27 Thread Mert ÇALIŞKAN
Hi,

I'm trying to use h2 db v1.4.192 with Payara Application server (it's a 
fork of GlassFish) but I'm getting the SQLClient exception given below.

java.sql.SQLClientInfoException: Property name 'numServers is used 
internally by H2.
at org.h2.jdbc.JdbcConnection.setClientInfo(JdbcConnection.java:1711)
at org.h2.jdbc.JdbcConnection.setClientInfo(JdbcConnection.java:1768)
at 
com.sun.gjc.spi.jdbc40.ConnectionHolder40.setClientInfo(ConnectionHolder40.java:332)

The reason behind is, JdbcConnection class sets numServers as clientInfo 
and Payara's ConnectionHolder40 class get this default client info and sets 
it to JdbcConnection by calling setClientInfo. The internal usage check is 
implemented in v1.4.192 and previous version of H2 (1.4.191) works ok with 
the Payara application server.

How can I resolve this issue?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.