Yep thought of it too but was in a dirty state to push any change. Does it
urge?

- Romain
Le 23 juil. 2012 08:24, "Enrico Olivelli" <[email protected]> a écrit :

> Hi,
> today I updated OpenEJB trunk and it does not compile anymore on JDK7
> it is because of new classes that wrap JDBC DataSource and Connection
>
> I think these new methods won't be used in JavaEE6 App (because JavEE6
> requires jdk6 and "portable" apps can't use jdk7 specific library functions)
> personally I always implemented them with a 'throw new SQLException("not
> supported yet")'
>
> consider adding in org.apache.openejb.resource.**jdbc.managed.**
> ManagedDataSource.java
>
> //no @Override if you want to compile on JDK6
>  public Logger getParentLogger() throws SQLFeatureNotSupportedExceptio**n
> {
> // use reflection if you want to compile on JDK6 or throw new
> SQLFeatureNotSupportedExceptio**n...
>         return delegate.getParentLogger();
>     }
>
>
> and these lines to org.apache.openejb.resource.**jdbc.managed.**
> ManagedConnection.java
>
>     public void setSchema(String schema) throws SQLException {
>         delegate.setSchema(schema);
>     }
>
>     public String getSchema() throws SQLException {
>         return delegate.getSchema();
>     }
>
>     public void abort(Executor executor) throws SQLException {
>         delegate.abort(executor);
>     }
>
>     public void setNetworkTimeout(Executor executor, int milliseconds)
> throws SQLException {
>         delegate.setNetworkTimeout(**executor, milliseconds);
>     }
>
>     public int getNetworkTimeout() throws SQLException {
>         return delegate.getNetworkTimeout();
>     }
>
>
>
>  - Enrico
>
>

Reply via email to