【发布时间】:2016-08-28 09:25:45
【问题描述】:
我正在使用 phoenix 进行事务处理,从 phoenix.apache.org/transactions.html 开始,我需要从客户端设置 phoenix.transactions.enabled=true。
但是如何在 java jdbc 客户端中设置呢?
【问题讨论】:
我正在使用 phoenix 进行事务处理,从 phoenix.apache.org/transactions.html 开始,我需要从客户端设置 phoenix.transactions.enabled=true。
但是如何在 java jdbc 客户端中设置呢?
【问题讨论】:
我明白了。
Properties info = new Properties();
info.setProperty("phoenix.transactions.enabled", Boolean.TRUE.toString());
con = DriverManager.getConnection(url, info);
【讨论】: