如何向 glassfish 添加 Interbase 连接池?
我正在尝试将 Interbase 连接池添加到 GlassFish v3 以在项目中使用 EJB 3.1。 glassfish 日志似乎正确连接到我的数据库,它输出了我所有的表名和索引。但是,我收到错误
INFO:获取数据库元数据 严重:无法完成架构更新 java.lang.NullPointerException 在 interbase.interclient.ResultSet.local_Close(来源未知) ... 当我从 Glassfish 中ping
连接池时,我收到“Ping 失败异常 - null”。
我的连接池设置了以下属性:
资源类型:javax.sql.DataSource
数据源类名:interbase.interclient.DataSource
端口号:3050
以及我的数据库信息。
我似乎无法在其他地方找到信息。 这个问题是类似的但没有收到答复。
谢谢。
I am attempting to add an Interbase connection pool to GlassFish v3 to use EJB 3.1 in a project. The glassfish log appears to be connecting to my database properly, it spits out all my table names and indices. However, I get an error
INFO: fetching database metadata
SEVERE: could not complete schema update
java.lang.NullPointerException
at interbase.interclient.ResultSet.local_Close(Unknown Source)
...
And when I ping the connection pool from within Glassfish I receive "Ping failed Exception - null".
I have the following properties set with my connectionpool:
resource type: javax.sql.DataSource
Datasource Classname: interbase.interclient.DataSource
portNumber: 3050
as well as my database info.
I can't seem to find information elsewhere. This question is similar but did not receive an answer.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 ping 在连接池级别失败,那么事情很可能无法正常工作。有机会使用其他数据库吗?如果是的话,真的这样做,因为 Interbase 似乎是一个过时的产品,而且我对可用 JDBC 驱动程序的质量不太有信心(这个页面都太旧了,布满灰尘)。看来 J2EE 1.3 的时间已经暂停了...如果没有,那么也许可以尝试另一个驱动程序(例如 Firebird 驱动程序)。
更新:正如 Craig 在评论中指出的那样,InterBase 由由 Embarcadero 并包含一个 Type 4 JDBC 驱动程序。但是,恕我直言,Borland/CodeGear/Embarcadero 产品仍然处于消亡趋势。
If the ping fails at the connection pool level then things are very likely not going to work. Any chances to use another database? If yes, really do it because Interbase seems to be an outdated product and I'm not very confident with the quality of available JDBC drivers (drivers listed in this page are all so old and dusty). It looks like time has been suspended with J2EE 1.3... If not, then maybe try another driver (the Firebird one for example).
Update: As pointed out by Craig in a comment, InterBase is maintained by Embarcadero and includes a Type 4 JDBC Driver. But, still, the Borland/CodeGear/Embarcadero products are IMHO on a dying trend.