In the following sections you can find examples for programming important JCo server functions with the JCo API 2:
Establishing an RFC Connection (Inbound Call from SAP System)
Java Program for Establishing a Server Connection
Exception Listener
Server State Change Listener
Processing an ABAP Call