[ 
https://issues.apache.org/jira/browse/DERBY-6059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575800#comment-13575800
 ] 

Kim Haase commented on DERBY-6059:
----------------------------------

Thanks, Dag and Knut, that clarifies matters a lot.

I'm still a little bit confused by the statement that "For Java 7 (JDBC 4.1) it 
*is* required [to use the '40' data sources]." We have been saying (in 
http://db.apache.org/derby/docs/10.9/adminguide/cadminnsdatasources.html, for 
instance) that you can use the old data sources on all platforms:

"The Network Server supports the Derby Network Client driver DataSource classes 
org.apache.derby.jdbc.ClientDataSource and 
org.apache.derby.jdbc.ClientConnectionPoolDataSource on all supported Java SE 
platforms." (It's a bit confusing that the XA ones are not mentioned, but they 
are in the next section.)

If you are running on Java SE 7, it seems that you cannot use these but must 
use the "40" versions? Or is that the case (as we have been saying) only if you 
want to use the APIs specific to JDBC 4.1? If you have an app that uses only 
JDBC 3 methods, can you use the basic org.apache.derby.jdbc.ClientDataSource 
(etc.) DataSources on SE 6, 7, and 8 if you want?

Just checking ... Thanks!

                
> Document Derby usage running on Java 8 JEP 161 Compact Profiles
> ---------------------------------------------------------------
>
>                 Key: DERBY-6059
>                 URL: https://issues.apache.org/jira/browse/DERBY-6059
>             Project: Derby
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Dag H. Wanvik
>            Assignee: Kim Haase
>             Fix For: 10.10.0.0
>
>         Attachments: javadoc-snapshot.pdf
>
>
> Document that Derby can run even under constrained Java runtime as planned 
> for Java 8 Compact Profiles 2 and 3 (not 1, the smallest runtime, since it 
> has no JDBC). Cf work in DERBY-5955 which made Derby run gracefully even when 
> some normal Java runtime packages are missing, notably JNDI and JMX.
> That work introduced six new data sources which have reduced functionality 
> compared with the corresponding ones for full Java SE, in that there is no 
> JNDI support. The six new data sources are for the client driver:
> Client/server data sources for use with Java 8 Compact Profile 2 and above:
>     BasicClientDataSource40 - Data source
>     BasicClientConnectionPoolDataSource40 - Connection pooling data source
>     BasicClientXADataSource40 - XA data source 
> Embedded data sources for use with Java 8 Compact Profile 2 and above:
>     BasicEmbeddedDataSource40 - Data source
>     BasicEmbeddedConnectionPoolSource40 - Connection pooling data source
>     BasicEmbeddedXASource40 - XA data source 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to