0
我使用Wildfly8和postgresql作为我的数据库。我需要org.postgresql.PGConnection才能实现postgresql的LISTEN/NOTIFY功能。连接抛出异常蜻蜓
我的代码如下所示:
private Connection conn;
private org.postgresql.PGConnection pgconn;
Conn = entityManager.unwrap(java.sql.Connection.class);
this.pgconn = conn.unwrap(org.postgresql.PGConnection.class);
我获得以下异常:
java.sql.SQLException: Not a wrapper for: org.postgresql.PGConnection
什么可这里的问题?
在康涅狄格州印刷的价值,我得到: :[email protected] –