For an overview of connection management, see “Chapter 26, “Using Connection Management,” in the EAServer Programmer’s Guide.
EAServer provides the following routines to manage cached connections:
JagCmCacheProps – Retrieve connection cache properties.
JagCmGetCachebyName – Retrieve the handle for the cache with the specified name.
JagCmGetCachebyUser – Retrieve a cache handle for connections that use a specified set of values for server, user name, password, and connectivity library.
JagCmGetConnection – Retrieve a connection from a specified cache or from any cache that matches a specified set of values for server, user name, password, and connectivity library.
JagCmGetCtx – Obtain the connectivity-library-specific context reference that is used to allocate cached connections in a cache.
JagCmGetProxyConnection – Retrieve a cached connection, specifying an alternate login name to set-proxy to.
JagCmReleaseConnection – Place a connection back in the cache for reuse.
Copyright © 2005. Sybase Inc. All rights reserved. |