在配置weblogic數(shù)據(jù)源和連接池時(shí),由于建立連接池采用的weblogic的默認(rèn)sqlserver jdbc驅(qū)動(dòng)程序weblogic.jdbc.sqlserver.SQLServerDriver,這給我下面的工作帶來很大的麻煩。我在進(jìn)行session.save()時(shí),提示錯(cuò)誤 JDBC error: Unsupported method: Connection.prepareStatement ,很是讓我納悶,百思不得其解,后google一下,得到了bea 工程師的解答,如下:
?Well, that's clearly one of them. I would contact Hibernate/Plum Tree
?about this, and ask how many JDBC drivers they've tested this with.
?I would venture an educated guess that many JDBC drivers will not
?be able to completely implement all the JDBC 3.0 methods in the
?spec's wishlist.... MHO,
?Joe Weinstein at BEA Systems

??? 可以看出,bea提供的sqlserver驅(qū)動(dòng)沒有完全實(shí)現(xiàn) jdbc的方法,而hibernate3卻調(diào)用了Connection.prepareStatement 方法,碰巧該方法不實(shí)現(xiàn),就出現(xiàn)上述錯(cuò)誤。