cancel
Showing results for 
Search instead for 
Did you mean: 

How to 'disconnect' in JCoDestination API

Amey-Mogare
Contributor
0 Kudos

Hello,

I am using following piece of code to make a RFC call from a JSPDynpage to back-end SAP R/3 system: -

JCoDestination wdModelDataDest = JCoDestinationManager.getDestination("WD_MODELDATA_MYAPPLICATION");

JCoRepository repository = wdModelDataDestFixedUser.getRepository();

JCoFunction function = repository.getFunction(RFC_NAME);

JCoParameterList importparams = function.getImportParameterList();

importparams.setValue("USERNAME", "A007");

function.execute(wdModelDataDest);

JCoParameterList exportParams = function.getExportParameterList();

String gbuName = exportParams.getString("GBU");

Could you please let me know how to ensure that connection is 'disconnected' after RFC call?

Portal version : CE7.3 EHP1 SP9

Thanks & Regards,

Amey Mogare

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amey,

In the new JCo 3.0 API, connection management is no longer a task for the individual application, but

is managed centrally by a destination model.

Mahesh

Amey-Mogare
Contributor
0 Kudos

Thanks Mahesh, for reply.

If possible, could you please provide me with a link to relevant SAP documentation about where & how this connection is managed in new JC0 3.0 API?

Thanks & Regards,

Amey Mogare

Amey-Mogare
Contributor
0 Kudos

Hello Mahesh,

Thanks a lot for prompt & very helpful replies.

I want to know more about "Pool settings" and "Adavnce settings" properties of a RFC Destination that we create in NWA > Configuration > Security > Destinations.

Currently we are facing issues in our prod backend SAP R/3 system that many connections of this RFC destination's technical user are remaining open.

Need to know how to fine tune these (or any other) parameters/properties?

Former Member
0 Kudos

Destination setting in NWA mainly controls the pool size and the wait time for a new connection. In case your connections are remaining open in backend, then you need to set the idle timeout - rdisp/gui_auto_logout

Your basis consultant should be able to help you with these settings.

Mahesh

Amey-Mogare
Contributor
0 Kudos

Thanks a lot, Mahesh.

Answers (0)