cancel
Showing results for 
Search instead for 
Did you mean: 

Inefficient usage of JCO connections

Former Member
0 Kudos

Hi,

SAP did a review on the portal that I mantain and wrote:

"Inefficient usage of JCo connections:

With the help of Wily Transaction Traces we could identify that for the initial startpage of a user (MSS) two JCo connections are opened within the same pool to the same backend. This is re-dundant as the data could be received over one connection. The effect is the double amount of JCo connections which means an additional usage of resources.

Each login consists of two connections into the backend. We observed when refreshing the page hitting either the F5 key or the enter key on the URL, the user is logged out of the portal and the backend system to be logged in again immediately.

This behaviour consumes J2EE and Backend resources unnecessarily. This behaviour was also observed in the productive environment."

I don't understand this point, can you help me ?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sir,

I am a student who is pursuing a project that deals with JCo 3.

I read your question on the forum and think that you have done the JCo stuff and can answer my questions.

Kindly, try to shed some light on following question:

Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.

I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but

when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,

I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.

Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you

know how to run the SAP JCo program.

Your guidance will be highly appreciated

-Thanks

-Dmukhi