Ask the Expert

JCo and multi-threaded BAPI applications

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?


    Requires Free Membership to View

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.


This was first published in January 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: