IBM WebSphere® DataPower® XC10 Appliance
Release 1.0 Client API Specification

Package com.ibm.websphere.objectgrid.spring

This package holds the Spring specific APIs for ObjectGrid.

See:
          Description

Interface Summary
SpringLocalTxManager This interface has the methods for interacting with the ObjectGrid Spring LocalTransactionManager.
 

Class Summary
ObjectGridSpringFactory This class serves as a factory to construct instances of the various Spring specific APIs.
 

Exception Summary
CannotGetObjectGridSessionException This can be thrown by getSession if a new Session cannot be obtained for any reason.
ObjectGridTransactionException The ObjectGrid platform transaction manager can throw this unchecked exception whenever errors occur.
 

Package com.ibm.websphere.objectgrid.spring Description

This package holds the Spring specific APIs for ObjectGrid.

Local Transaction Support

ObjectGrid has implemented a Spring PlatformTransactionManager. This allows Spring to manage local transactions using a single ObjectGrid session. Spring can then be used to annotate POJOs with container managed transaction semantics much like a J2EE application server does using J2EE CMT. An application should instantiate a SpringLocalTxManager using the appropriate factory method on ObjectGridSpringFactory and then wire a reference to that object in to all POJOs that use Spring CMT. This instance has a getSession method to obtain the correct Session for that POJO. The application must call one of the SpringLocalTxManager#setObjectGridForThread methods before invoking a managed POJO to specify which ObjectGrid instance should be used for any CMT on this thread.


IBM WebSphere® DataPower® XC10 Appliance
Release 1.0 Client API Specification

© Copyright International Business Machines Corp 2005,2010. All rights reserved.