Table of Contents Previous Next

Table of Contents

Introduction to Oracle Tuxedo Java Programming
Programing Guidelines
Programming Environment
Tuxedo Java Server Threads and Java Class Instance Model
Tuxedo Java Server Initialization and Termination Methods
Tuxedo 12c Release 2 (12.1.3) Behaviors
Tuxedo 12c Release 1 (12.1.1) Behaviors
tpsvrinit() Handling
tpsvrdone() Handling
Tuxedo Java Server tpreturn() Methods
Tuxedo Java Server Exception Handling
ATMI Java Server User Interfaces
Oracle Tuxedo Java Context
TJATMI Primitives for Tuxedo Java Applications
TypedBuffers for Tuxedo Java Applications
Limitations for Typedbuffer Support
Get/Set Service Information
Newly Added Java APIs from Tuxedo 12c Release 2 (12.1.3)
Newly Added Java APIs
Examples for Programming with Newly Java APIs
Listing 2‑1 Example for Invoking APIs in Server Initialization and Termination Stage
Listing 2‑2 Example for Invoking APIs in Service Routine
Listing 2‑3 Example for Forwarding Service Requests
Listing 2‑4 Example for Invoking APIs in an Application Server Thread
Implementing Services in Oracle Tuxedo Java Server
Typical Procedures
a. Get the TuxAppContext object using getTuxAppContext() method
b. Get the client request data using TPSVCINFO.getServiceData() method from TPSVCINFO object
c. If you have configured a DataSource, get a connection to the DataSource using TuxAppContext.getConnection() method
d. Do the business logic, such as call some other services using TuxAppContext.tpcall(), manipulate the database, etc.
e. Allocate a new TypedBuffer and put a reply data in the TypedBuffer
f. Call TuxAppContext.tpreturn() to return the reply data to client
Example: Implementing Java Service without Transaction
Defining Java Classes
Listing 3‑1 Java Class Definition
Creating Java Server Configuration File
Listing 3‑2 Java Server Configuration File
Updating UBB Configuration File
Listing 3‑3 UBB Config File Configuration
Example: Implementing Java Service with Transaction
Defining Java Classes
Listing 3‑4 Class Definition
Creating Java Server Configuration File
Listing 3‑5 Java Server Configuration File
Updating UBB Configuration File
Listing 3‑6 UBB Conf File Configuration
Using FML with Oracle Tuxedo Java Server
Using FML with Oracle Tuxedo Java Server
Overview of FML
The Oracle WebLogic Tuxedo Connector FML API
FML Field Table Administration
Using the DynRdHdr Property for mkfldclass32 Class
Gaining TypedFML32 Performance Improvements
Using VIEW with Oracle Tuxedo Java Server
Overview of VIEW Buffers
How to Create a VIEW Description File
Example VIEW Description File
Listing 4‑1 Example VIEW Description
How to Use the viewj Compiler
How to Pass Information to and from a VIEW Buffer
How to Use VIEW Buffers in JATMI Applications
How to Get VIEW32 Data In and Out of FML32 Buffers
Listing 4‑2 Example: How to Add and Retrieve an Embedded TypedView32 Buffer in a TypedFML32 Buffer
Listing 4‑3 Example FML Description
Oracle® Tuxedo
12c Release 2 (12.1.3)
Oracle Tuxedo Programming an Oracle Tuxedo Application Using Java, 12c Release 2 (12.1.3)

Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.