public abstract class AbstractRemoteApplicationModuleImpl extends java.lang.Object implements JboExceptionHandler, TransactionStateListener, WSApplicationModuleMarshaller, ViewClearCacheListener, ApplicationModuleRemoteAdapter
| Modifier and Type | Field and Description | 
|---|---|
| static int | PROCESS_STATUS_ERROR_FOUND | 
| static int | PROCESS_STATUS_OK | 
ACTIVATION_AFTER_LOSS_OF_AFFINITY, ACTIVATION_AFTER_RESTART, ACTIVATION_NONE, SYNC_INT_BATCH, SYNC_INT_BATCH_DO_WORK| Constructor and Description | 
|---|
| AbstractRemoteApplicationModuleImpl() | 
| AbstractRemoteApplicationModuleImpl(ApplicationModuleImpl appModule) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
public static final int PROCESS_STATUS_OK
public static final int PROCESS_STATUS_ERROR_FOUND
public AbstractRemoteApplicationModuleImpl()
public AbstractRemoteApplicationModuleImpl(ApplicationModuleImpl appModule)
public void setMarshaller(ObjectMarshallerImpl marshaller, boolean setupMarshaller)
public void setSvcMsgManager(PiggybackManager piggyman)
public PiggybackManager getSvcMsgManager()
public java.lang.String getRequestName()
public ObjectMarshallerImpl getMarshaller()
public ApplicationModuleImpl createRootApplicationModule(java.util.Hashtable ctxEnv)
public java.lang.String getResponseName()
getResponseName in interface WSApplicationModuleMarshallerpublic int getRemoteObjectId(java.lang.Object obj)
getRemoteObjectId in interface WSApplicationModuleMarshallerpublic java.lang.Object marshal(java.lang.Object obj)
marshal in interface WSApplicationModuleMarshallerpublic java.lang.Object marshalForActivate(java.lang.Object obj)
marshalForActivate in interface WSApplicationModuleMarshallerpublic ObjectMarshaller getObjectMarshaller()
getObjectMarshaller in interface WSApplicationModuleMarshallerpublic void addResponse(java.io.Serializable resp)
addResponse in interface WSApplicationModuleMarshallerpublic void addException(java.lang.Exception ex)
public void setDataModelRefresh(boolean b)
setDataModelRefresh in interface WSApplicationModuleMarshallerprotected SessionImpl createSession(java.util.Hashtable env)
public final void setApplicationModuleDefName(java.lang.String appModuleDefName)
public final java.lang.String getApplicationModuleDefName()
public ResponseValues getApplicationModuleInfo()
public ApplicationModuleImpl createApplicationModule(java.lang.String name, java.lang.String defName)
public void detach()
detach in interface WSApplicationModuleMarshallerpublic void afterActivation(int activationMode)
afterActivation in interface WSApplicationModuleMarshallerpublic void setBoundToWorkingSet(boolean b)
setBoundToWorkingSet in interface WSApplicationModuleMarshallerpublic void bindToWorkingSet(WSApplicationModuleImpl wsAM)
bindToWorkingSet in interface WSApplicationModuleMarshallerpublic java.lang.String getClientProxyInterfaceName()
getClientProxyInterfaceName in interface WSApplicationModuleMarshallerpublic ApplicationModule createWorkerApplicationModule(java.lang.Object sessionCookie)
createWorkerApplicationModule in interface WSApplicationModuleMarshallerpublic AppModuleRequestHandler getAppModuleRequestHandler()
getAppModuleRequestHandler in interface WSApplicationModuleMarshallerpublic void syncWorkingSet(WSApplicationModuleImpl wsAM)
syncWorkingSet in interface WSApplicationModuleMarshallerpublic void finishSyncWorkingSet(WSApplicationModuleImpl wsAM, boolean isEndOfSvcMsg)
finishSyncWorkingSet in interface WSApplicationModuleMarshallerpublic ServiceMessage sendWorkingSetRequests(java.lang.String reqName, WSApplicationModuleImpl wsAM, ServiceMessage msg)
sendWorkingSetRequests in interface WSApplicationModuleMarshallerpublic WSApplicationModuleImpl getCurrentWorkingSet()
getCurrentWorkingSet in interface WSApplicationModuleMarshallerpublic boolean hasPendingDataPosts()
hasPendingDataPosts in interface WSApplicationModuleMarshallerprotected ServiceMessage pooledSync(ServiceMessage svcMsg, SessionCookie cookie)
public ServiceMessage sync(ServiceMessage msg)
public ServiceMessage processMessage(ServiceMessage msg)
processMessage in interface ApplicationModuleRemoteAdapterpublic void finishServiceMessage()
finishServiceMessage in interface ApplicationModuleRemoteAdapterpublic void clearServiceMessage()
clearServiceMessage in interface ApplicationModuleRemoteAdapterpublic void txnCreated(DBTransactionImpl txn)
txnCreated in interface ApplicationModuleRemoteAdapterpublic void txnRemoved(DBTransactionImpl txn)
txnRemoved in interface ApplicationModuleRemoteAdapterprotected void disconnectWithRetainState(boolean retainState)
protected void reconnectWithoutForce()
public void remove()
protected int processSvcMsgRequest(Request svcMsgReq, int processStatus)
protected ObjectMarshallerImpl createObjectMarshaller()
protected PiggybackManager createPiggybackManager(ObjectMarshaller om)
public void setAdaptee(ApplicationModuleImpl appModImpl)
protected void releaseAdaptee(SessionCookie cookie)
public ApplicationModuleImpl getAdaptee()
public boolean processPiggyback(byte[] inBytes)
public boolean processServiceMessage(ServiceMessage svcMsg)
protected ServiceMessage getOutboundServiceMessage()
public byte[] getPiggyback()
public void handleException(java.lang.Exception ex,
                   boolean lastEntryInPiggyback)
JboExceptionHandlerhandleException in interface JboExceptionHandlerex - an exception.lastEntryInPiggyback - true if ex is the
 last of a batch of exceptions and warnings generated by a transaction.public void handleWarning(JboWarning warn)
JboExceptionHandlerhandleWarning in interface JboExceptionHandlerwarn - a warning message.public void finishedProcessingPiggyback(java.lang.Exception[] exArray)
finishedProcessingPiggyback in interface JboExceptionHandlerpublic java.lang.Object findObject(java.lang.String objName)
public ResponseValues findApplicationModule(ApplicationModuleImpl parentAM, java.lang.String amName)
public ResponseValues createLocalApplicationModule(ApplicationModuleImpl parentAM, java.lang.String amName, java.lang.String defName)
public java.lang.Object dispatchMethod(java.lang.Object obj,
                              java.lang.String methodName,
                              java.lang.String[] argTypes,
                              java.lang.Object[] args)
                                throws JboException
JboExceptionpublic void doneCommit(TransactionStateEvent event)
doneCommit in interface TransactionStateListenerevent - a description of the event.public void doneRollback(TransactionStateEvent event)
doneRollback in interface TransactionStateListenerevent - a description of the event.public void cacheCleared(ViewClearCacheEvent event)
ViewClearCacheListenerViewObject.clearCache(), or
 Transaction.clearEntityCache(String), or
 ApplicationModule.clearVOCaches(String, boolean).cacheCleared in interface ViewClearCacheListenerevent - describes the event.protected void addMethodReturnValueToMessage(java.lang.String methodName,
                                 java.lang.Object retVal)
protected java.lang.String[] getAppModuleNamesFromResponse(ResponseValues resp)
public java.lang.Object invokeMethod(java.lang.Object target,
                            java.lang.String methodName,
                            java.lang.String[] argTypeNames,
                            java.lang.Object[] args)
invokeMethod in interface WSApplicationModuleMarshallerpublic void syncMarshaller(ServiceMessage msg)
syncMarshaller in interface WSApplicationModuleMarshaller