function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GingaCodeMonkeyGingaCodeMonkey 

Are the Java API jars thread-safe?

Hi all,

 

I have been tasked with finding out if the wsc-22.jar and the generated partner.jar are thread-safe.

We are building an application in Java that will be having multiple threads accessing the partner connection variable and sending queries/updates/creates to SalesForce.

I have found the documentation on the limits, so the limits of 10 query cursors and for concurrent requests (calls) with a duration of 20 seconds or longer:

However nothing really on if the code is thread-safe.

 

Any help in finding an answer to this would be greatly appreciated.

 

Regards,

 

Adrian

Best Answer chosen by Admin (Salesforce Developers) 
dkadordkador

The stubs themselves are thread safe (the Enterprise/PartnerConnection objects).  Changes to the ConnectorConfig objects are not thread safe.  So don't mess with the config after the stubs are created.

All Answers

dkadordkador

The stubs themselves are thread safe (the Enterprise/PartnerConnection objects).  Changes to the ConnectorConfig objects are not thread safe.  So don't mess with the config after the stubs are created.

This was selected as the best answer
GingaCodeMonkeyGingaCodeMonkey

Thank you for your reply, it is very much appreciated!

 

Regards,

 

Adrian