Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

JCo client support for asynchronous RFC calls

$
0
0

Hi,

 

I have read extensively through the JCo and RFC documentation I have found, but I'm still not sure if I really got how far the JCo library supports asynchronous RFC calls when acting as a client.

 

In my scenario, I have a Java program acting as the RFC client and accessing RFC functions on an ABAP AS. I would like to use asynchronous calls, e.g., by bfRFC. From the JCo JavaDoc, I would say that the way to go is getting a JCoRequest object by calling JCoRepository.getRequest. When calling execute on JCoRequest, the corresponding RFC on my target system is executed, and I'll get a JCoResponse back, containing the results of the function call. What I don't get is how this is asynchronous, because I'll have to wait until the response is there before the execution of my program can continue. And if the execution is actually asynchronous, then how do I get informed about failing executions or available results of my function call?

 

If this is not the correct way to do asynchronous RFC calls from a JCo client, I'd be very happy to hear about the correct way to implement this.

 

Cheers,

Johannes


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>