cancel
Showing results for 
Search instead for 
Did you mean: 

How to disconnect a SapJco3 connection?

Former Member
0 Kudos

Hi folks,

i'm wondering how i can disconnect a sapjco3 connection that i openedjust recently.

I know how it works with sapjc v2, you first create your client:

JCO.Client client = JCO.createClient(.....);

and after that you can connect and disconnect:

client.connect();

...

...

client.disconnct();

but i cant find an equivalent version with sapjco3.

The only thing in sapcjco is to set up a destination :

JCoDestination dest = JCoDestinationManager.getDestination("jcoDestinationFile");

After that i am connected to the SAP system but i dont know how i can disconnect again.

PS: Is it possible to see of how many ingoing RFC's are currently connected to SAP, and maybe where they are coming from?

Maybe there is an SAP transaction for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Refer to last reply of Christian in below thread...

Just to add to that - with JCo 3.0 there is no need to explicitly open or close connections anymore, this is done by the framework. However, in case you need to maintain a specific connection with its context, there are ways to do that, have a look at the Javadoc for JCoContext, that should give a good explanation.