是否有使用sun.jdbc.odbc.JdbcOdbcDriver中选择? [英] Is there an alternative to using sun.jdbc.odbc.JdbcOdbcDriver?

查看:628
本文介绍了是否有使用sun.jdbc.odbc.JdbcOdbcDriver中选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近迁移一个较旧的应用程序,我们在工作中从Java 1.5至1.6。我注意到,在生成过程中,我现在得到一个(新的)编译器警告:

I recently migrated an older application we have at work from Java 1.5 to 1.6. I noticed that during the build, I now get a (new) compiler warning:


... DatabaseSession.java:[9,20] sun.jdbc.odbc.JdbcOdbcDriver中是Sun的专有API,并可能在将来的版本中删除

所以,我明白这意味着什么,但有一个著名的替代方案,更加开放标准友好,而不是专有的?你用什么驱动程序和/或推荐,什么是它的优势是什么?

So I understand what that means, but is there a well-known alternative that is more open-standards friendly, not proprietary? What driver do you use and/or recommend and what are the advantages of it?

到目前为止,我已经采取它编译于1.6的办法,所以我们会继续使用它,我们可以找到替代以后,如果Java的下一个版本不支持它,我可能会尝试燮preSS警告不再出现在积聚。我错认为?

So far I have taken the approach that it compiles in 1.6, so we'll keep using it and we can find a replacement later if the next version of Java does not support it, and I will likely try to suppress the warning from showing up in the build. Am I wrong to think that?

推荐答案

是的,使用的类型4 JDBC驱动程序为您所使用的数据库。

Yes, use a Type 4 JDBC driver for the database you're using.

在JDBC-ODBC桥距离最坏的JDBC驱动程序,我不得不高兴与工作之一。

The JDBC-ODBC brigde is one of the worst JDBC drivers that I had to pleasure to work with.

另外,你可能想寻找到第三方JDBC-ODBC桥如的本斯软件产品,但我没有与任何经验。

Alternatively you might want to look into third-party JDBC-ODBC bridges such as this Easysoft product, but I don't have any experience with those.

这篇关于是否有使用sun.jdbc.odbc.JdbcOdbcDriver中选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆