Appendix B Repository Properties Reference


Connection cache properties

Description

Connection cache property names begin with com.sybase.jaguar.conncache . In Jaguar Manager, configure connection cache properties in the Connection Cache Properties dialog box.

In addition to the properties described here, you can configure additional properties for JDBC and Client-Library caches. See "All Properties tab" for more information.

See Also

Chapter 4, "Database Access"


com.sybase.jaguar.conncache.cachebyname

Description

Specifies whether components can use this cache by specifying the cache name alone.

Syntax

true or false . The default is false .

Usage

To access a cache from an aliased JNDI reference, this property must be true.

In Jaguar Manager, set this property using the Allow By-Name Access check box on the Cache tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.component.resource-ref,
com.sybase.jaguar.webapplication.resource-ref


com.sybase.jaguar.conncache.cachesize

Description

Specifies the number of connections kept open in the cache.

Syntax

A positive integer.

Usage

The cache size specifies the number of connections kept open in the cache. At times, more connections may be open than the size allows if additional connections are required. However, excess connections are deallocated and not returned to the cache.

In Jaguar Manager, set this property in the Number of Connections in Cache field on the Cache tab in the Connection Properties dialog box.


com.sybase.jaguar.conncache.check

Description

Specifies the query to use when testing whether a connection is still useable.

Syntax

The SQL query text. The default is:

select 1
The default does not work on all databases. For example, for an Oracle database, you must set this property to:
select 1 from dual

Usage

To set this property in Jaguar Manager, use the All Properties tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.conncache.checkallowed


com.sybase.jaguar.conncache.checkallowed

Description

Specifies whether the cache manager should test connections before returning them to the cache.

Syntax

true or false . The default is false .

Usage

The query used to test the cache is specified by the com.sybase.jaguar.conncache.check property.

To set this property in Jaguar Manager, use the Enable connection sanity check option on the Cache tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.conncache.check


com.sybase.jaguar.conncache.conlibdll

Description

Specifies the DLL, shared library, or JDBC driver class name used in the connection.

Syntax

The syntax is the same as the DLL or Class Name field on the Driver tab in the Connection Cache Properties dialog box. See "Driver properties".


com.sybase.jaguar.conncache.conlibname

Description

Specifies the type of connection cache.

Syntax

Your choices for library type are:

Table 15-3: Library type values
Value To indicate
CTLIB_110 Sybase Open Client Client-Library connections
ODBC Connections using an open database connectivity driver
JDBC Connections using Java Database Connectivity driver
OCI_7 Connection using OCI 7.x
OCI_8 Connections using OCI 8.x

Usage

In Jaguar Manager, set this property on the Cache tab in the Connection Cache properties dialog box.


com.sybase.jaguar.conncache.description

Description

Specifies an optional text description of the cache.

Syntax

desc

Where desc is the descriptive text.

Usage

In Jaguar Manager, set this property in the Description field on the General tab in the Connection Cache properties dialog box.


com.sybase.jaguar.conncache.highavailability

Description

Specifies whether to use a high availability connection.

Syntax

true or false . The default is false .

Usage

In Jaguar Manager, set this property on the Driver tab in the Connection Cache properties dialog box. The property is available only for Client Library 11.0 connections.


com.sybase.jaguar.conncache.name

Description

Specifies the cache name.

Syntax

The cache name as displayed in Jaguar Manager.


com.sybase.jaguar.conncache.password.e

Description

Specifies the password for connections in the cache.

Syntax

The password text. Values are encrypted in the repository.

Usage

In Jaguar Manager, set this property in the Password field on the General tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.conncache.username


com.sybase.jaguar.conncache.remotesvrname

Description

For JDBC caches that use Sybase jConnect for JDBC to connect to a Sybase DirectConnect gateway, specifies the back-end data server name that the DirectConnect gateway connects to.

This property is ignored for caches that use JDBC drivers other than jConnect.

Syntax

The remote server name.

Usage

In Jaguar Manager, set this property using the Service Name field on the Cache tab in the Connection Cache Properties dialog box.


com.sybase.jaguar.conncache.ssa

Description

Enables set-proxy support for connections to databases that support this feature.

Syntax

true or false . The default is false , which disables set-proxy support.

Usage

Current versions of Adaptive Server Enterprise and Adaptive Server Anywhere allow a user to assume the identity and privileges of another user. Except for Oracle connections that use OCI, you can use this feature with any database that recognizes this command:

set session authorization "login-name"

When proxy support is enabled, connections retrieved from the cache are set to act as a proxy for the user name associated with the EAServer client. To set proxy to another user name, use the Java JCMCache.getProxyConnection() method or the C JagCmGetProxyConnection() routine in your component.

The user name specified in the cache properties (com.sybase.jaguar.conncache.username) must have set-proxy privileges in the database and/or server used by the cache.

In Jaguar Manager, set this property using the All Properties tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.conncache.username


com.sybase.jaguar.conncache.username

Description

Specifies the user name for connections in the cache.

Syntax

The user name.

Usage

In Jaguar Manager, set this property using the User name field on the General tab in the Connection Cache Properties dialog box.

See Also

com.sybase.jaguar.conncache.password.e

 


Copyright © 2002 Sybase, Inc. All rights reserved.