Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP JCo 3 connection check

Hi SAP gurus,

Could you please help me with one thing. I'm developing application which communicates with SAP via JCo.I have successfully implemented connection establishing and calling function. What I cannot figure out in JCo 3 is how to check connectivity, to see if the connection is maybe broken for some reason.

I see that in JCo 2 there was class JCO.connection, which has method isAlive() - which checks whether the connection is alive. As far as I can see, in JCo 3 there is no such class. I need that kind of check in my application, because I need to see whether connection is broken before I start one complex process.

I see that ping method exists, but it's quite slow (sometimes it needs several seconds).

Could you please help me regarding this problem?

Thank you all very much for your help!

Former Member

Hi Karlo,

in principle you describe that you've implemented the method via the monitor that I described above. Hence, it's worth as much as isAlive(). If there is no connection available however, you could try with a ping whether connectivty is still working afterwards in case it is really important to know this before. Otherwise, no connection will get back into the pool again

Best regards,


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question