|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bea.jolt.JoltServiceBase | +--bea.jolt.JoltRemoteService
JoltRemoteService provides an implementation of Tuxedo synchronous Request/Reply communication model. Jolt treats each Tuxedo service as a remote service object, and each service has its input and output parameters. Typically, the user sets the input parameters through the various setXXX and addXXX methods, and then invokes the call() method. Upon successful completion, the user retrieves the result through the various getXXX methods.
Jolt maps the following Java data types to Tuxedo data types:
Java Data Type | Tuxedo data type |
byte | char |
short | short |
int | long |
float | float |
double | double |
String | string |
byte[] | carray |
Constructor Summary | |
JoltRemoteService(java.lang.String name)
This constructor gets a Tuxedo service, which is represented as an object. |
|
JoltRemoteService(java.lang.String name,
bea.jolt.Session s)
This constructor gets a Tuxedo service, which is represented as an object. |
Method Summary | |
void |
acall()
Sends an asynchronous invocation. |
static boolean |
anyReplyWaiting()
Determines whether there is a reply waiting. |
void |
call()
Invokes the synchronized request/reply using an implicit transaction model. |
void |
call(bea.jolt.Transaction trans)
Invokes the synchronized request/reply without a transaction. |
void |
clear()
Clears the input and output parameters, and the priority. |
void |
done()
Done with this service object and performs some clean up. |
static JoltRemoteService |
getAnyReply()
Returns any remote service that has a reply available. |
int |
getApplicationCode()
Gets the return code from the application. |
java.lang.String |
getName()
Gets the name of this service. |
void |
getrply()
Gets an asynchronous reply. |
boolean |
hasReply()
Determines whether an asynchronous reply is waiting. |
void |
setNoTimeOut(boolean noTimeOut)
Sets no timeout for the request. |
void |
setRequestPriority(int priority)
Sets the absolute priority for the request. |
java.lang.String |
toString()
Gets the class name with the service name. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public JoltRemoteService(java.lang.String name) throws ServiceException
name
- The service name.public JoltRemoteService(java.lang.String name, bea.jolt.Session s) throws ServiceException
name
- The service name.s
- Must be null.Method Detail |
public void done()
public java.lang.String getName()
public int getApplicationCode()
public void call() throws ServiceException, TransactionException, ApplicationException
call(Transaction)
public void acall() throws ServiceException, TransactionException, ApplicationException
public void getrply() throws ServiceException, TransactionException, ApplicationException
public boolean hasReply() throws ServiceException
public static boolean anyReplyWaiting()
public static JoltRemoteService getAnyReply()
public void call(bea.jolt.Transaction trans) throws ServiceException, ApplicationException
trans
- Must be null.clear()
public void setRequestPriority(int priority)
priority
- A priority value between 1 and 100, inclusive.public void setNoTimeOut(boolean noTimeOut)
notimeout
- Specify true for no timeout, or false for a timeout.public java.lang.String toString()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |