3-2 Oracle Fusion Middleware WebLogic Tuxedo Connector Programmers Guide for Oracle WebLogic Server
3.1.3 Perform the Requested Service
Use Java code to express the logic required to provide your service.
3.1.3.1 Return Client Messages for RequestResponse Communication
Use the TuxedoReply class setReplyBuffer method to respond to client requests.
3.1.3.2 Use tpsend and tprecv for Conversational Communication
Use the following JATMI primitives when creating conversational servers that communicate with Oracle Tuxedo clients:
TypedFML Buffer type used when the data is self-defined. Each data field carries its
own identifier, an occurrence number, and possibly a length indicator. Oracle Tuxedo equivalent: FML.
TypedFML32 Buffer type similar to TypeFML but allows for larger character fields,
more fields, and larger overall buffers. Oracle Tuxedo equivalent: FML32.
TypedXML Buffer type used when data is an XML based message. Oracle Tuxedo
equivalent: XML for Tuxedo Release 7.1 and higher. TypedView
Buffer type used when the application uses a Java structure to define the buffer structure using a view description file. Tuxedo equivalent:
VIEW TypedView32
Buffer type similar to View but allows for larger character fields, more fields, and larger overall buffers. Oracle Tuxedo equivalent: VIEW32.
TypedXOctet Buffer type used when the data is an undefined array of characters byte
array any of which can be null. X_OCTET is identical in semantics to CARRAY. Oracle Tuxedo equivalent: X_OCTET.
TypedXCommon Buffer type identical in semantics to View. Oracle Tuxedo equivalent:
VIEW. TypedXCType
Buffer type identical in semantics to View. Oracle Tuxedo equivalent: VIEW.
TypedMBString Buffer type used when the data is a wide array of characters to support
multi-byte characters. Oracle Tuxedo equivalent: MBSTRING.
Note: For more information on Conversational Communication, see
Chapter 6, Oracle WebLogic Tuxedo Connector JATMI Conversations.
Table 3–3 Oracle WebLogic Tuxedo Connector Conversational Client Primitives
Name Operation
tpconnect Use to establish a connection to an Oracle Tuxedo conversational service.
tpdiscon Use to abort a connection and generate a TPEV_DISCONIMM event when
executed by the process controlling the conversation. tprecv
Use to receive data across an open connection from an Oracle Tuxedo application.
tpsend Use to send data across a open connection to an Oracle Tuxedo application.
Table 3–2 Cont. TypedBuffers
Buffer Type Description
Developing Oracle WebLogic Tuxedo Connector Service EJBs 3-3
3.2 Example Service EJB