When I create the repository object as repository = new Repository( ropositoryName, connectionPoolName ); and then call repository.getFunctionInterface(RFM_Name); sometimes I have this exception: com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not connected in repository call at com.sap.mw.jco.JCO$Repository.getVersion(JCO.java:18273)at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:18601) at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:18334) at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:18444)
This is no way to check if the connection is indeed active for this repository (no link to the client object)....
So, when I use the repository this way does it mean the connection will be taken automatically from the pool?
I have not seen this before. Make sure you use the latest version of JCo. And do not use connect/disconnect on pool connections. If that does not help, I would have to see the complete source code.