Saturday, April 3, 2010

Working with a Non Database AM

Create you view object as one "Rows Populated programmaticaly, not based upon a query"
NoDatabaseApplicationPoolImpl : Custom Application Module Pool Implementation Class. Overrides isSupportsPassivation() method to return False, indicating to runtime that this AM does not support Passivation.
NonDatabaseConnectionStrategy : Custom Connection Strategy Class
CustomSessionImpl : Custom Session Class, returns a custom session transaction handler factory
CustomTxnHandlerFactoryImpl : A custom transaction handler factory, used to return an instance of the CustomTxnHandlerImpl class
CustomTxnHandlerImpl : custom Transaction Handler implementation class

The Session Class Configuration property is set to the name of the Custom Session Implementation Class (CustomSessionImpl)
The PoolClassName configuration property is set to the custom application module pool implementation class (NoDatabaseApplicationPoolImpl)

The jbo.ampool.connectionstrategyclass configuration property is set to the name of the custom connection strategy class which overrides the createApplicationModule() method to set some key properties in the environment hashmap before calling super.

Remove the reference to the Database connection in the Model.jpx file.

Sample App : Application 8

No comments:

Post a Comment