I want to write a multi-threaded BAPI application, and I am concerned about overhead. If I have a few threads that call different RFCs, can they share the same JCO.Client object or do they all need their own connection to R/3? What if I want to call the same RFC in R/3 using many threads? Is this possible, and does each thread need it's own connection? What about the repository object?
The JCo Repository is thread-safe, so you can share one. And yes, you need one connection for each concurrent access to SAP. Sharing connections between threads is not allowed.
Dig deeper on SAP ABAP
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.