Integrations - iBatis |
rate-12967-76595
| Article Rating? |
|
|
|
| Product Type |
ORM Solution |
| Versions Supported |
2.2.0 |
| Module Status |
Included with Terracotta Kit 2.5.2 and above |
| Module Availability - Released (latest) |
Download with Terracotta Kit |
| Module Availability - SNAPSHOT (latest) |
Not Available |
| Download with Kit |
See latest Terracotta Kit |
Introduction
The Apache iBatis
Data Mapper framework makes it easier to use a database with Java and .NET applications.
iBatis allows lazy loading. When enabled, a pojo object returned from a iBatis query will contain a proxy object to the referenced object. For instance, a Customer object returned from a query to the Customer table will have a proxy object in its reference to the Account object. iBatis will de-reference the proxy object when the Account object is queried at a later point in time.
With the Terracotta integration module for iBatis, one node can query a Customer table lazily and share the returned Customer object, while a second node can de-reference the Account object reference and obtain the referenced Account object.
Dependencies
None.
Implementation
To enable clustering with iBatis, add the iBatis configuration module to tc-config.xml:
<modules>
<module name="clustered-iBatis-<iBatis_version>" version="<module_version>"/>
</modules>
For example, use the module clustered-iBatis-2.2.0-2.6.0, add the following snippet to tc-config.xml:
<modules>
<module name="clustered-iBatis-2.2.0" version="2.6.0"/>
</modules>
Known Issues
None.