You need to sign in to do that
Don't have an account?
GingaCodeMonkey
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
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
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.
Thank you for your reply, it is very much appreciated!
Regards,
Adrian