Writing to a different bucket than default does not work
I am using couchbase-client-1.0.2 and couchbase 2.1.1
When i try to connect and write to a bucket other then the one called "default"
it still writes to "default".
Here is the code i use to connect:
CouchbaseConnectionFactoryBuilder builder = new CouchbaseConnectionFactoryBuilder(); builder.setOpTimeout(LeadspaceProperties.getMemcachedOperationTimeout()).setProtocol(Protocol.BINARY).setHashAlg(DefaultHashAlgorithm.KETAMA_HASH);//.setMaxReconnectDelay(1); CouchbaseConnectionFactory factory = builder.buildCouchbaseConnection(serverList, "test" e, user, psw); CouchbaseClient client = new CouchbaseClient(factory); .....
please note that i am using a pool of clients, some to default and some to test.
Any idea what i am doing wrong?
Have you tried to update your Java SDK to the latest one? (1.2.2)
As you can see the 1.0.x is not supported with Couchbase 2.x