Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

couchbase-user's picture
Asked 5 months 1 week ago

Using Couchbaseclient.getstats(statsname) to get specific statistics only

Hi there,

I'm trying to collect specific statistics about the execution of couchbase operations and times but yet struggling to find the right function to do this.

The latest thing I tried was Couchbaseclient.getstats() that returns about two pages for every server in my cluster...

tamazero's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

Storing pdf documents inside couchbase

Hi all, I'd like to integrate an open source ERP system (Adempiere ERP) with couchbase storing invoice informations inside the db and also the corrisponding pdf files.
The pdf files are quite small (about 100kb) and I 'd want to store also the document information (docno, date,...

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

connection pool or singleton

I am using a java compute node in websphere message broker.

Each message flowing through the broker gets a new thread. The java compute node executes in its own thread and cannot share anything outside that thread. Even JDBC must go through a configurable service to get a connection to...

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

too many files open exception

I was using spymemcached client, and since our application uses Websphere MessageBroker where we access the cache, each request is a new thread, so we ran into trouble. The spymemcached client does not do connection pooling so we ran out of connections. Upping the open file count for user and...

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

I want to replace the javax.persistence.EntityManager implementation

I want to move my applications to couchbase.

Many of those applications use jpa/Hibernate and implement the javax.persistence.EntityManager Interface.

I have started work and the following class is my implementation so far.

My question is, do you have an example of another...

MikeOliverAZ's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

Query Example fetching multiple documents matching a attribute value

I have a java application and want to store some pojos in Couchbase and retrieve all the pojos of a certain class by one of the fields in the pojo.

The java class is something like this:

public
...
MikeOliverAZ's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

Getting Started not getting far

I downloaded and installed 2.2 Enterprise and the Admin console works great.

Imported the jars in the Java SDK and tried the hello world example.

Here is the console when I try to run it.

2013-10-24 10:30:57.391 INFO com.couchbase.client.CouchbaseMemcachedConnection: Added...

ielia's picture
Asked 5 months 3 weeks ago
Latest activity 4 months 4 weeks ago

CouchbaseConnectionFactory.updateStoredBaseList hard-coded administration port

Dear all,

I've noticed there is a "8091" hard-coded in CouchbaseConnectionFactory.updateStoredBaseList(Config). I have started a server on a remote host on port 10091 and I cannot make it work due to this piece of code:

...
sivasena's picture
Asked 6 months 18 hours ago
Latest activity 5 months 3 weeks ago

getAndLock in JAVA

Dear All,

I'm currently exploring document locking using "getAndLock("Key", timeOut)" method, but unfortunately i'm not able to lock the document. Below is the piece of the code i have written:

=================================================================
List uris = new...

phongn17's picture
Asked 6 months 4 days ago
Latest activity 5 months 2 weeks ago

Using Java Couchbase Client 1.2.0 to access to Couchbase Community 2.1.1 on AWS does not work

When trying to connect to Couchbase on AWS using Using Java Couchbase Client 1.2.0, I always got an exception of java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String...
I noticed that AWS uses an older version commons-codec-1.3.jar while Couchbase Client 1...

Pages