Show TOC

Function documentationEstablishing a Connection to an SAP Server Locate this document in the navigation structure

 

There are two possible programming models for using SAP JCo to connect to an SAP server: Direct Connections and Connection Pools.

  • Direct connections can be opened and maintained for as long as necessary.

  • A connection pool makes a connection available on demand. As soon as a connection becomes free and is released back into the connection pool, it can be assigned to another user.

These models can be implemented in parallel in an application. You should always use pools for creating Web Server applications, and connection pools can also be useful for desktop applications.

This graphic is explained in the accompanying text.

Fig.: Connection to an SAP server

More Information

For more information on establishing connections to an SAP server, see: