cancel
Showing results for 
Search instead for 
Did you mean: 

Clean JCO pool

Former Member
0 Kudos

Hi,

How can I clean the Jco Pool from WebDynpro?

Thanks,

Aviad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

<b>detachFromPool</b>

public void detachFromPool(JCO.Client client)Detaches a client-connection from the pool. The client wont be closed. This method converts a pooled client to a single client. Only pooled clients, those aren't released, can be detached from its pool.

Parameters:

client - the client connection which is being returned to its pool

Throws:

JCO.Exception - thrown if a connection could not be removed from pool cleanly

Urs GS

Former Member
0 Kudos

Thanks.

I woulk like to explicitly close the connection that is used by the Model. How can I do so? Can you paste a code sample?

Thanks,

Aviad

Former Member
0 Kudos

finally

{

<Put Model Name> crtModel = (<Put Model Name>)WDModelFactory.getModelInstance(<Put Model Name>.class);

crtModel.disconnectIfAlive();

}

Former Member
0 Kudos

Hi ..

<b>disconnect</b>

Chk this link.

you can use this also..

MultiModel empModel = (MultiModel) DModelFactory.getModelInstance(MultiModel.class);

empModel.disconnectIfAlive();

hope this will help u..

Urs GS

Answers (0)