oracle.jbo.server.remote
Class AbstractRemoteApplicationModuleImpl
java.lang.Object
   oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl
oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl
- All Implemented Interfaces: 
- java.util.EventListener, WSApplicationModuleMarshaller, JboExceptionHandler, ApplicationModuleRemoteAdapter, TransactionStateListener, ViewClearCacheListener
- Direct Known Subclasses: 
- NestedApplicationModuleImpl, ServerApplicationModuleImpl, ServerApplicationModuleImpl
- public abstract class AbstractRemoteApplicationModuleImpl 
- extends java.lang.Object- implements JboExceptionHandler, TransactionStateListener, WSApplicationModuleMarshaller, ViewClearCacheListener, ApplicationModuleRemoteAdapter
Remote Adapter that adapts the 2-tier implementation of application module to
 remote application module.
 
 
 
| Method Summary | 
|  void | addException(java.lang.Exception ex)
 | 
| protected  void | addMethodReturnValueToMessage(java.lang.String methodName,
                              java.lang.Object retVal)
 | 
|  void | addResponse(java.io.Serializable resp)
 | 
|  void | afterActivation(int activationMode)
 | 
|  void | bindToWorkingSet(WSApplicationModuleImpl wsAM)
 | 
|  void | cacheCleared(ViewClearCacheEvent event)This event is fired when View Object caches are cleared.
 | 
|  void | clearServiceMessage()
 | 
|  ApplicationModuleImpl | createApplicationModule(java.lang.String name,
                        java.lang.String defName)
 | 
|  ResponseValues | createLocalApplicationModule(ApplicationModuleImpl parentAM,
                             java.lang.String amName,
                             java.lang.String defName)
 | 
| protected  ObjectMarshallerImpl | createObjectMarshaller()
 | 
| protected  PiggybackManager | createPiggybackManager(ObjectMarshaller om)
 | 
|  ApplicationModuleImpl | createRootApplicationModule(java.util.Hashtable ctxEnv)
 | 
| protected  SessionImpl | createSession(java.util.Hashtable env)
 | 
|  ApplicationModule | createWorkerApplicationModule(java.lang.Object sessionCookie)
 | 
|  void | detach()
 | 
| protected  void | disconnectWithRetainState(boolean retainState)
 | 
|  java.lang.Object | dispatchMethod(java.lang.Object obj,
               java.lang.String methodName,
               java.lang.String[] argTypes,
               java.lang.Object[] args)
 | 
|  void | doneCommit(TransactionStateEvent event)
 | 
|  void | doneRollback(TransactionStateEvent event)
 | 
|  ResponseValues | findApplicationModule(ApplicationModuleImpl parentAM,
                      java.lang.String amName)
 | 
|  java.lang.Object | findObject(java.lang.String objName)
 | 
|  void | finishedProcessingPiggyback(java.lang.Exception[] exArray)
 | 
|  void | finishServiceMessage()
 | 
|  void | finishSyncWorkingSet(WSApplicationModuleImpl wsAM,
                     boolean isEndOfSvcMsg)
 | 
|  ApplicationModuleImpl | getAdaptee()
 | 
|  java.lang.String | getApplicationModuleDefName()
 | 
|  ResponseValues | getApplicationModuleInfo()
 | 
| protected  java.lang.String[] | getAppModuleNamesFromResponse(ResponseValues resp)
 | 
|  AppModuleRequestHandler | getAppModuleRequestHandler()
 | 
|  java.lang.String | getClientProxyInterfaceName()
 | 
|  WSApplicationModuleImpl | getCurrentWorkingSet()
 | 
|  ObjectMarshallerImpl | getMarshaller()
 | 
|  ObjectMarshaller | getObjectMarshaller()
 | 
| protected  ServiceMessage | getOutboundServiceMessage()
 | 
|  byte[] | getPiggyback()
 | 
|  int | getRemoteObjectId(java.lang.Object obj)
 | 
|  java.lang.String | getRequestName()
 | 
|  java.lang.String | getResponseName()
 | 
|  PiggybackManager | getSvcMsgManager()
 | 
|  void | handleException(java.lang.Exception ex,
                boolean lastEntryInPiggyback)Catches an exception thrown by the middle tier.
 | 
|  void | handleWarning(JboWarning warn)Catches a warning thrown by the middle tier.
 | 
|  boolean | hasPendingDataPosts()
 | 
|  java.lang.Object | invokeMethod(java.lang.Object target,
             java.lang.String methodName,
             java.lang.String[] argTypeNames,
             java.lang.Object[] args)
 | 
|  java.lang.Object | marshal(java.lang.Object obj)
 | 
|  java.lang.Object | marshalForActivate(java.lang.Object obj)
 | 
| protected  ServiceMessage | pooledSync(ServiceMessage svcMsg,
           SessionCookie cookie)
 | 
|  ServiceMessage | processMessage(ServiceMessage msg)
 | 
|  boolean | processPiggyback(byte[] inBytes)
 | 
|  boolean | processServiceMessage(ServiceMessage svcMsg)
 | 
| protected  int | processSvcMsgRequest(Request svcMsgReq,
                     int processStatus)
 | 
| protected  void | reconnectWithoutForce()
 | 
| protected  void | releaseAdaptee(SessionCookie cookie)
 | 
|  void | remove()
 | 
|  ServiceMessage | sendWorkingSetRequests(java.lang.String reqName,
                       WSApplicationModuleImpl wsAM,
                       ServiceMessage msg)
 | 
|  void | setAdaptee(ApplicationModuleImpl appModImpl)
 | 
|  void | setApplicationModuleDefName(java.lang.String appModuleDefName)
 | 
|  void | setBoundToWorkingSet(boolean b)
 | 
|  void | setDataModelRefresh(boolean b)
 | 
|  void | setMarshaller(ObjectMarshallerImpl marshaller,
              boolean setupMarshaller)
 | 
|  void | setSvcMsgManager(PiggybackManager piggyman)
 | 
|  ServiceMessage | sync(ServiceMessage msg)
 | 
|  void | syncMarshaller(ServiceMessage msg)
 | 
|  void | syncWorkingSet(WSApplicationModuleImpl wsAM)
 | 
|  void | txnCreated(DBTransactionImpl txn)
 | 
|  void | txnRemoved(DBTransactionImpl txn)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PROCESS_STATUS_OK
public static final int PROCESS_STATUS_OK
- See Also:
- Constant Field Values
PROCESS_STATUS_ERROR_FOUND
public static final int PROCESS_STATUS_ERROR_FOUND
- See Also:
- Constant Field Values
AbstractRemoteApplicationModuleImpl
public AbstractRemoteApplicationModuleImpl()
AbstractRemoteApplicationModuleImpl
public AbstractRemoteApplicationModuleImpl(ApplicationModuleImpl appModule)
setMarshaller
public void setMarshaller(ObjectMarshallerImpl marshaller,
                          boolean setupMarshaller)
- 
 
- 
 
setSvcMsgManager
public void setSvcMsgManager(PiggybackManager piggyman)
- 
 
- 
 
getSvcMsgManager
public PiggybackManager getSvcMsgManager()
- 
 
- 
 
getRequestName
public java.lang.String getRequestName()
- 
 
- 
 
getMarshaller
public ObjectMarshallerImpl getMarshaller()
- 
 
- 
 
createRootApplicationModule
public ApplicationModuleImpl createRootApplicationModule(java.util.Hashtable ctxEnv)
- 
 
- 
 
getResponseName
public java.lang.String getResponseName()
- 
- Specified by:
- getResponseNamein interface- WSApplicationModuleMarshaller
 
- 
 
getRemoteObjectId
public int getRemoteObjectId(java.lang.Object obj)
- 
- Specified by:
- getRemoteObjectIdin interface- WSApplicationModuleMarshaller
 
- 
 
marshal
public java.lang.Object marshal(java.lang.Object obj)
- 
- Specified by:
- marshalin interface- WSApplicationModuleMarshaller
 
- 
 
marshalForActivate
public java.lang.Object marshalForActivate(java.lang.Object obj)
- 
- Specified by:
- marshalForActivatein interface- WSApplicationModuleMarshaller
 
- 
 
getObjectMarshaller
public ObjectMarshaller getObjectMarshaller()
- 
- Specified by:
- getObjectMarshallerin interface- WSApplicationModuleMarshaller
 
- 
 
addResponse
public void addResponse(java.io.Serializable resp)
- 
- Specified by:
- addResponsein interface- WSApplicationModuleMarshaller
 
- 
 
addException
public void addException(java.lang.Exception ex)
- 
 
- 
 
setDataModelRefresh
public void setDataModelRefresh(boolean b)
- 
- Specified by:
- setDataModelRefreshin interface- WSApplicationModuleMarshaller
 
- 
 
createSession
protected SessionImpl createSession(java.util.Hashtable env)
- 
 
- 
 
setApplicationModuleDefName
public final void setApplicationModuleDefName(java.lang.String appModuleDefName)
- 
 
- 
 
getApplicationModuleDefName
public final java.lang.String getApplicationModuleDefName()
- 
 
- 
 
getApplicationModuleInfo
public ResponseValues getApplicationModuleInfo()
- 
 
- 
 
createApplicationModule
public ApplicationModuleImpl createApplicationModule(java.lang.String name,
                                                     java.lang.String defName)
- 
 
- 
 
detach
public void detach()
- 
- Specified by:
- detachin interface- WSApplicationModuleMarshaller
 
- 
 
afterActivation
public void afterActivation(int activationMode)
- 
- Specified by:
- afterActivationin interface- WSApplicationModuleMarshaller
 
- 
 
setBoundToWorkingSet
public void setBoundToWorkingSet(boolean b)
- 
- Specified by:
- setBoundToWorkingSetin interface- WSApplicationModuleMarshaller
 
- 
 
bindToWorkingSet
public void bindToWorkingSet(WSApplicationModuleImpl wsAM)
- 
- Specified by:
- bindToWorkingSetin interface- WSApplicationModuleMarshaller
 
- 
 
getClientProxyInterfaceName
public java.lang.String getClientProxyInterfaceName()
- 
- Specified by:
- getClientProxyInterfaceNamein interface- WSApplicationModuleMarshaller
 
- 
 
createWorkerApplicationModule
public ApplicationModule createWorkerApplicationModule(java.lang.Object sessionCookie)
- 
- Specified by:
- createWorkerApplicationModulein interface- WSApplicationModuleMarshaller
 
- 
 
getAppModuleRequestHandler
public AppModuleRequestHandler getAppModuleRequestHandler()
- 
- Specified by:
- getAppModuleRequestHandlerin interface- WSApplicationModuleMarshaller
 
- 
 
syncWorkingSet
public void syncWorkingSet(WSApplicationModuleImpl wsAM)
- 
- Specified by:
- syncWorkingSetin interface- WSApplicationModuleMarshaller
 
- 
 
finishSyncWorkingSet
public void finishSyncWorkingSet(WSApplicationModuleImpl wsAM,
                                 boolean isEndOfSvcMsg)
- 
- Specified by:
- finishSyncWorkingSetin interface- WSApplicationModuleMarshaller
 
- 
 
sendWorkingSetRequests
public ServiceMessage sendWorkingSetRequests(java.lang.String reqName,
                                             WSApplicationModuleImpl wsAM,
                                             ServiceMessage msg)
- 
- Specified by:
- sendWorkingSetRequestsin interface- WSApplicationModuleMarshaller
 
- 
 
getCurrentWorkingSet
public WSApplicationModuleImpl getCurrentWorkingSet()
- 
- Specified by:
- getCurrentWorkingSetin interface- WSApplicationModuleMarshaller
 
- 
 
hasPendingDataPosts
public boolean hasPendingDataPosts()
- 
- Specified by:
- hasPendingDataPostsin interface- WSApplicationModuleMarshaller
 
- 
 
pooledSync
protected ServiceMessage pooledSync(ServiceMessage svcMsg,
                                    SessionCookie cookie)
- 
 
- 
 
sync
public ServiceMessage sync(ServiceMessage msg)
- 
 
- 
 
processMessage
public ServiceMessage processMessage(ServiceMessage msg)
- 
- Specified by:
- processMessagein interface- ApplicationModuleRemoteAdapter
 
- 
 
finishServiceMessage
public void finishServiceMessage()
- 
- Specified by:
- finishServiceMessagein interface- ApplicationModuleRemoteAdapter
 
- 
 
clearServiceMessage
public void clearServiceMessage()
- 
- Specified by:
- clearServiceMessagein interface- ApplicationModuleRemoteAdapter
 
- 
 
txnCreated
public void txnCreated(DBTransactionImpl txn)
- 
- Specified by:
- txnCreatedin interface- ApplicationModuleRemoteAdapter
 
- 
 
txnRemoved
public void txnRemoved(DBTransactionImpl txn)
- 
- Specified by:
- txnRemovedin interface- ApplicationModuleRemoteAdapter
 
- 
 
disconnectWithRetainState
protected void disconnectWithRetainState(boolean retainState)
- 
 
- 
 
reconnectWithoutForce
protected void reconnectWithoutForce()
- 
 
- 
 
remove
public void remove()
- 
 
- 
 
processSvcMsgRequest
protected int processSvcMsgRequest(Request svcMsgReq,
                                   int processStatus)
- 
 
- 
 
createObjectMarshaller
protected ObjectMarshallerImpl createObjectMarshaller()
- 
 
- 
 
createPiggybackManager
protected PiggybackManager createPiggybackManager(ObjectMarshaller om)
- 
 
- 
 
setAdaptee
public void setAdaptee(ApplicationModuleImpl appModImpl)
- 
 
- 
 
releaseAdaptee
protected void releaseAdaptee(SessionCookie cookie)
- 
 
- 
 
getAdaptee
public ApplicationModuleImpl getAdaptee()
- 
 
- 
 
processPiggyback
public boolean processPiggyback(byte[] inBytes)
- 
 
- 
 
processServiceMessage
public boolean processServiceMessage(ServiceMessage svcMsg)
- 
 
- 
 
getOutboundServiceMessage
protected ServiceMessage getOutboundServiceMessage()
- 
 
- 
 
getPiggyback
public byte[] getPiggyback()
- 
 
- 
 
handleException
public void handleException(java.lang.Exception ex,
                            boolean lastEntryInPiggyback)
- Description copied from interface: JboExceptionHandler
- Catches an exception thrown by the middle tier.
 
- 
- Specified by:
- handleExceptionin interface- JboExceptionHandler
 
- 
- Parameters:
- ex- an exception.
- lastEntryInPiggyback-- trueif- exis the
 last of a batch of exceptions and warnings generated by a transaction.
 
handleWarning
public void handleWarning(JboWarning warn)
- Description copied from interface: JboExceptionHandler
- Catches a warning thrown by the middle tier.
 
- 
- Specified by:
- handleWarningin interface- JboExceptionHandler
 
- 
- Parameters:
- warn- a warning message.
 
finishedProcessingPiggyback
public void finishedProcessingPiggyback(java.lang.Exception[] exArray)
- 
- Specified by:
- finishedProcessingPiggybackin interface- JboExceptionHandler
 
- 
 
findObject
public java.lang.Object findObject(java.lang.String objName)
- 
 
- 
 
findApplicationModule
public ResponseValues findApplicationModule(ApplicationModuleImpl parentAM,
                                            java.lang.String amName)
- 
 
- 
 
createLocalApplicationModule
public ResponseValues createLocalApplicationModule(ApplicationModuleImpl parentAM,
                                                   java.lang.String amName,
                                                   java.lang.String defName)
- 
 
- 
 
dispatchMethod
public java.lang.Object dispatchMethod(java.lang.Object obj,
                                       java.lang.String methodName,
                                       java.lang.String[] argTypes,
                                       java.lang.Object[] args)
                                throws JboException
- 
 
- 
- Throws:
- JboException
 
doneCommit
public void doneCommit(TransactionStateEvent event)
- 
- Specified by:
- doneCommitin interface- TransactionStateListener
 
- 
- Parameters:
- event- a description of the event.
 
doneRollback
public void doneRollback(TransactionStateEvent event)
- 
- Specified by:
- doneRollbackin interface- TransactionStateListener
 
- 
- Parameters:
- event- a description of the event.
 
cacheCleared
public void cacheCleared(ViewClearCacheEvent event)
- Description copied from interface: ViewClearCacheListener
- This event is fired when View Object caches are cleared.
 A View Object cache can be cleared thourgh a call to
 ViewObject.clearCache(), orTransaction.clearEntityCache(String), or
 ApplicationModule.clearVOCaches(String, boolean).
 
- 
- Specified by:
- cacheClearedin interface- ViewClearCacheListener
 
- 
- Parameters:
- event- describes the event.
 
addMethodReturnValueToMessage
protected void addMethodReturnValueToMessage(java.lang.String methodName,
                                             java.lang.Object retVal)
- 
 
- 
 
getAppModuleNamesFromResponse
protected java.lang.String[] getAppModuleNamesFromResponse(ResponseValues resp)
- 
 
- 
 
invokeMethod
public java.lang.Object invokeMethod(java.lang.Object target,
                                     java.lang.String methodName,
                                     java.lang.String[] argTypeNames,
                                     java.lang.Object[] args)
- 
- Specified by:
- invokeMethodin interface- WSApplicationModuleMarshaller
 
- 
 
syncMarshaller
public void syncMarshaller(ServiceMessage msg)
- 
- Specified by:
- syncMarshallerin interface- WSApplicationModuleMarshaller
 
- 
 
Copyright © 1997, 2011, Oracle. All rights reserved.