The following sections provide information on how to create Oracle WebLogic Tuxedo Connector service EJBs:
A service application uses Java and JATMI primitives to provide the following tasks:
Use the TPServiceInformation class to access service information sent by the Oracle Tuxedo client to run the service.
Use the following TypedBuffers when sending and receiving messages between your application and Oracle Tuxedo:
Use Java code to express the logic required to provide your service.
Use the TuxedoReply class setReplyBuffer()
method to respond to client requests.
Note: | For more information on Conversational Communication, see Oracle WebLogic Tuxedo Connector JATMI Conversations. |
Use the following JATMI primitives when creating conversational servers that communicate with Oracle Tuxedo clients:
The following provides an example of the TolowerBean.java
service EJB which receives a string argument, converts the string to all lower case, and returns the converted string to the client.
.
.
.
public Reply service(TPServiceInformation mydata) throws TPException {
TypedString data;
String lowered;
TypedString return_data;
log("service tolower called");
data = (TypedString) mydata.getServiceData();
lowered = data.toString().toLowerCase();
return_data = new TypedString(lowered);
mydata.setReplyBuffer(return_data);
return (mydata);
}
.
.
.