cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between SAP JCo3 and JCo 2

Former Member
0 Kudos

Hi ,

I wanted to know what are the major differences between JCO3 and JCO2.

Does JCO3 suffers from any drawback.

I am asking this ,as i did not see any api used to terminate the current session like in case of JCO2.

Any document providing on this would be helpful.

Best Regards

Manoj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

That answers my question

Former Member
0 Kudos

Hi,

Advantages of JC03

1.JCo 3.0 to connect to SAP Systems

2.Improved connection management

3.Faster performance

4.Lower memory consumption

5.SystemLandscape API is no longer needed

6.Compatible to ARFC1 to allow easy migration

Thanks,

Venkat

Former Member
0 Kudos

Hi Manoj,

The problem with JCo 2.x was that the client model was kind of inconsistent (i.e. clients acquired directly versus clients retrieved from a connection pool). In general I don't think that you want to terminate sessions manually, instead this should be handled via the connection pool (i.e. automated disconnect after a configured amount of idle time). You can find some explanations of the differences between JCo 2.x and 3.x in the [SAP JCo Migration Guide|https://service.sap.com/~sapidb/011000358700000730362009D/SAPJCo_MigrationGuide_2.x_3.0_EN.pdf|Requires access to SAP service market place].

Note that JCo3 is not backwards compatible to JCo 2.x, but I think that's the only major drawback. Apart from that the API has been cleaned up and I personally benefited a lot from the improved memory management (less marshalling/unmarshalling of data from/to JNI layer, which allows for much higher data volume before getting memory errors in JVM). I remember having read some document that described all those changes, but couldn't find it. Closest one was the Migration Guide.

Best wishes, harald

anesh_kumar
Active Participant
0 Kudos

Hi

Is there any way to configure JCo 2.x to terminate the session

actually i am using jco.connect and jco.disconnect in my program

could you please help me out

thanks