SimpleHttpConnectionManager使用不正确。在couchdb

时间:2016-02-19 07:47:18

标签: java sockets gwt connection couchdb

我在使用GWT的couchDB中得到以下错误,

youRealmObject = realm.copyFromRealm(youRealmObject);

我像

一样创建了一个couchdb会话
Be sure that HttpMethod.releaseConnection() is always called and that only one thread and/or method is using this connection manager at a time.

并用于不同的问候语服务方法。

static Session session = null;
public static Session Couchconnect(){
    if(session==null) {
        session = new Session("localhost", "5984");
    }
    return session;
}

0 个答案:

没有答案