IBM WebSphereTM eXtreme Scale, Release 8.6
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
ObjectGridCache This class is a WebSphere eXtreme Scale implementation of the Spring Framework's Cache interface.
ObjectGridCatalogServiceDomainBean This class is a Spring bean representing a Catalog Service Domain for use with the WebSphere eXtreme Scale implementation of Spring's cache abstraction.
ObjectGridClientBean This class is a Spring bean representing an ObjectGrid client instance for use with the WebSphere eXtreme Scale implementation of Spring's cache abstraction.
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 WebSphereTM eXtreme Scale, Release 8.6
API Specification

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