Migrating from java sdk 2.7 to java sdk 3.1

hi. i was using java sdk 2.7.

while migrating to javasdk 3.1, there was a problem.

( part of java sdk 2.7 )

Can’t I set the method such as sslEnabled,bootstraphttpenabled that I was using for Environment when I created the cluster in SDK 3.1 any more?

I looked up the document, but it was not found.

All I found was Timeoutconfig.

I’d appreciate it if you could help me.

Thank you.


SDK3.1 uses TLS instead of SSL now, so you can find equivalent environment configurations in the SecurityConfig options. Here is a list of direct comparisons between the SDK2 and SDK3 configuration options: Migrating from SDK2 to SDK3 API | Couchbase Docs This page also has move information on migrating from SDK2 to SDK3 that may be of help to you in other areas.

More details on client configuration options can be found here: Client Settings for the Java SDK | Couchbase Docs which should enable you to recreate your 2.7 client configuration in 3.1.

Let me know if this helps.
Thanks - Will


wow, Thank you @WB

I couldn’t find this page until now.
(Migrating from SDK2 to SDK3 API | Couchbase Docs)

Thank you for your help. Have a good day.

1 Like