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 WSApplicationModuleMarshaller
public int getRemoteObjectId(java.lang.Object obj)
getRemoteObjectId
in interface WSApplicationModuleMarshaller
public java.lang.Object marshal(java.lang.Object obj)
marshal
in interface WSApplicationModuleMarshaller
public java.lang.Object marshalForActivate(java.lang.Object obj)
marshalForActivate
in interface WSApplicationModuleMarshaller
public ObjectMarshaller getObjectMarshaller()
getObjectMarshaller
in interface WSApplicationModuleMarshaller
public void addResponse(java.io.Serializable resp)
addResponse
in interface WSApplicationModuleMarshaller
public void addException(java.lang.Exception ex)
public void setDataModelRefresh(boolean b)
setDataModelRefresh
in interface WSApplicationModuleMarshaller
protected 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 WSApplicationModuleMarshaller
public void afterActivation(int activationMode)
afterActivation
in interface WSApplicationModuleMarshaller
public void setBoundToWorkingSet(boolean b)
setBoundToWorkingSet
in interface WSApplicationModuleMarshaller
public void bindToWorkingSet(WSApplicationModuleImpl wsAM)
bindToWorkingSet
in interface WSApplicationModuleMarshaller
public java.lang.String getClientProxyInterfaceName()
getClientProxyInterfaceName
in interface WSApplicationModuleMarshaller
public ApplicationModule createWorkerApplicationModule(java.lang.Object sessionCookie)
createWorkerApplicationModule
in interface WSApplicationModuleMarshaller
public AppModuleRequestHandler getAppModuleRequestHandler()
getAppModuleRequestHandler
in interface WSApplicationModuleMarshaller
public void syncWorkingSet(WSApplicationModuleImpl wsAM)
syncWorkingSet
in interface WSApplicationModuleMarshaller
public void finishSyncWorkingSet(WSApplicationModuleImpl wsAM, boolean isEndOfSvcMsg)
finishSyncWorkingSet
in interface WSApplicationModuleMarshaller
public ServiceMessage sendWorkingSetRequests(java.lang.String reqName, WSApplicationModuleImpl wsAM, ServiceMessage msg)
sendWorkingSetRequests
in interface WSApplicationModuleMarshaller
public WSApplicationModuleImpl getCurrentWorkingSet()
getCurrentWorkingSet
in interface WSApplicationModuleMarshaller
public boolean hasPendingDataPosts()
hasPendingDataPosts
in interface WSApplicationModuleMarshaller
protected ServiceMessage pooledSync(ServiceMessage svcMsg, SessionCookie cookie)
public ServiceMessage sync(ServiceMessage msg)
public ServiceMessage processMessage(ServiceMessage msg)
processMessage
in interface ApplicationModuleRemoteAdapter
public void finishServiceMessage()
finishServiceMessage
in interface ApplicationModuleRemoteAdapter
public void clearServiceMessage()
clearServiceMessage
in interface ApplicationModuleRemoteAdapter
public void txnCreated(DBTransactionImpl txn)
txnCreated
in interface ApplicationModuleRemoteAdapter
public void txnRemoved(DBTransactionImpl txn)
txnRemoved
in interface ApplicationModuleRemoteAdapter
protected 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)
JboExceptionHandler
handleException
in interface JboExceptionHandler
ex
- 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)
JboExceptionHandler
handleWarning
in interface JboExceptionHandler
warn
- a warning message.public void finishedProcessingPiggyback(java.lang.Exception[] exArray)
finishedProcessingPiggyback
in interface JboExceptionHandler
public 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
JboException
public void doneCommit(TransactionStateEvent event)
doneCommit
in interface TransactionStateListener
event
- a description of the event.public void doneRollback(TransactionStateEvent event)
doneRollback
in interface TransactionStateListener
event
- a description of the event.public void cacheCleared(ViewClearCacheEvent event)
ViewClearCacheListener
ViewObject.clearCache()
, or
Transaction.clearEntityCache(String), or
ApplicationModule.clearVOCaches(String, boolean)
.
cacheCleared
in interface ViewClearCacheListener
event
- 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 WSApplicationModuleMarshaller
public void syncMarshaller(ServiceMessage msg)
syncMarshaller
in interface WSApplicationModuleMarshaller