Chapter 1 Jaguar Configuration
You must configure XA resources to access a specific database. XA resources differ from connection caches in that XA resources are XA-Library interfaces that maintain their own connection pool separate from the connection cache connection pool.
If a get connection call (such as the Java getConnection or the C JagCmGetConnection method call) is in a transaction, the XA resource is automatically used to return a connection. If a get connection call is not in a transaction, the connection cache is automatically used. If the transactional behavior for a component uses the Supported option, then Jaguar determines at runtime whether the component executes its get connection calls in a transaction; if it does, you must configure both a connection cache and a corresponding XA resource for a database.
By default, Jaguar uses these shared libraries or DLLs to obtain an XA resource that is exported from the database connection libraries:
Connection library |
Shared library |
DLL |
---|---|---|
Sybase Client Library 11.0 |
libjxa.so |
libjxa.dll |
Oracle OCI 7.x |
libclntsh.so |
xa73.dll |
Oracle OCI 8.x |
libclntsh.so |
xa80.dll |
To use a shared library or DLL other than the default, edit the connection cache properties file %JAGUAR%\Repository\ConnCache\<cache_name>.props. For example, to instruct Jaguar to use oraclient8.dll instead of xa80.dll for Oracle OCI 8.1.x, add this line to the connection cache properties file:
com.sybase.jaguar.conncache.xadllname = oraclient8.dll
You must install XA resources in a Jaguar server before
components in that server can access the XA resources. You must
refresh XA resources, refresh the server, or restart the server
before any changes to the list of installed XA resources or to XA
resource properties take effect.
If you execute a transaction without an XA resource configured for a database, the Jaguar connection manager returns CS_FAIL.
If a configured XA resource is not running or cannot be connected to, the Jaguar server cannot initialize. To solve this problem, perform one of these tasks:
To
create OTS/XA transactions for XA resources:
If the Open String is set incorrectly, the Jaguar server
does not initialize.
Copyright © 2000 Sybase, Inc. All rights reserved. |
![]() |