Hello all,
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 ?
Tue, 06/19/2012 - 17:26
mikew
Offline
Joined: 03/14/2011
Groups:
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?
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?