I designed a public static CouchbaseConnection class which has a public static field client and client is created in constructor. Does this approach lead to any problem ?
I don't think it will cause problems in the client, but it may in your application. For example if you create two clients with the same ConnectionFactory then you probably will not have shut the client down correctly. Can you provide a use case for what you are trying to accomplish by doing this?
© 2013 COUCHBASE All rights reserved.