|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.mw.jco.JCO.Connection
com.sap.mw.jco.JCO.Server
com.softwareag.xbd.extension.JCOServer
Implements an R/3 server.
Field Summary |
Fields inherited from class com.sap.mw.jco.JCO.Server |
AUTHORIZATION_MODE_BASIC, AUTHORIZATION_MODE_SNC, FUNCTION_MODEL, m_middleware, REQUEST_RESPONSE_MODEL |
Fields inherited from class com.sap.mw.jco.JCO.Connection |
attributes, codepage_converter, conn_object, conn_params, last_active_timestamp, pool, properties, rfc_handle, state, throughput |
Constructor Summary | |
protected |
JCOServer(java.util.Properties properties,
com.sap.mw.jco.IRepository repository,
JCOStreamService service,
ServerDispatcher dispatcher)
|
protected |
JCOServer(java.lang.String gwhost,
java.lang.String gwserv,
java.lang.String program_id,
com.sap.mw.jco.IRepository repository,
JCOStreamService service,
ServerDispatcher dispatcher)
|
Method Summary | |
static java.lang.String |
getRevision()
Returns CVS revision. |
protected void |
handleRequest(com.sap.mw.jco.JCO.Function function)
Called upon an incoming requests |
protected boolean |
onCheckTID(java.lang.String tid)
This function will be invoked when a transactional RFC is being called from a SAP R/3 system. |
protected void |
onCommit(java.lang.String tid)
This function will be called after all RFC functions belonging to a certain transaction have been successfully completed. |
protected void |
onConfirmTID(java.lang.String tid)
This function will be called after the local transaction has been completed. |
protected void |
onRollback(java.lang.String tid)
This function will be called if an error in one of the RFC functions belonging to a certain transaction has occurred. |
void |
serverErrorOccurred(com.sap.mw.jco.JCO.Server srv,
java.lang.Error err)
Called if an error was thrown anywhere in our server |
void |
serverExceptionOccurred(com.sap.mw.jco.JCO.Server srv,
java.lang.Exception ex)
Called if an exception was thrown anywhere in our server |
void |
serverStateChangeOccurred(com.sap.mw.jco.JCO.Server server,
int old_state,
int new_state)
Simply prints server state changes |
void |
start(int workers)
Starts the dispatcher. |
void |
stop()
Stops the dispatcher. |
void |
trace(int arg0,
java.lang.String message)
|
Methods inherited from class com.sap.mw.jco.JCO.Server |
abort, checkAuthorization, disconnect, dispatchRequest, getAttributes, getCallModel, getFunction, getGWHost, getGWServ, getMiddlewareImplementation, getProgID, getPropertyInfo, getRepository, getServerInterface, getState, getThread, getTrace, handleRequest, isAlive, listen, run, setCallModel, setProperty, setRepository, setState, setThread, setTrace, start, suspend |
Methods inherited from class com.sap.mw.jco.JCO.Connection |
clone, finalize, getConnectionHandle, getProperties, getProperty, getThroughput, isValid, setThroughput |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JCOServer(java.lang.String gwhost, java.lang.String gwserv, java.lang.String program_id, com.sap.mw.jco.IRepository repository, JCOStreamService service, ServerDispatcher dispatcher)
protected JCOServer(java.util.Properties properties, com.sap.mw.jco.IRepository repository, JCOStreamService service, ServerDispatcher dispatcher)
Method Detail |
public static java.lang.String getRevision()
protected boolean onCheckTID(java.lang.String tid)
true
.
The method has to return false
if the a transaction with this ID has already
been process. Throw an exception if anything goes wrong. The transaction processing will be
aborted thereafter.
Derived servers must override this method to actually implement the transaction ID management.
tid
- the transaction ID
true
if the ID is valid and not in use otherwise, false
otherwiseprotected void onConfirmTID(java.lang.String tid)
tid
- the transaction IDprotected void onCommit(java.lang.String tid)
tid
- the transaction IDprotected void onRollback(java.lang.String tid)
tid
- the transaction IDprotected void handleRequest(com.sap.mw.jco.JCO.Function function)
public void serverExceptionOccurred(com.sap.mw.jco.JCO.Server srv, java.lang.Exception ex)
serverExceptionOccurred
in interface com.sap.mw.jco.JCO.ServerExceptionListener
public void serverErrorOccurred(com.sap.mw.jco.JCO.Server srv, java.lang.Error err)
serverErrorOccurred
in interface com.sap.mw.jco.JCO.ServerErrorListener
public void serverStateChangeOccurred(com.sap.mw.jco.JCO.Server server, int old_state, int new_state)
serverStateChangeOccurred
in interface com.sap.mw.jco.JCO.ServerStateChangedListener
public void start(int workers)
workers
- public void stop()
public void trace(int arg0, java.lang.String message)
trace
in interface com.sap.mw.jco.JCO.TraceListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |