Table of Contents Introduction to Oracle Tuxedo Java Programming Overview Programming 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 and Above) Behavior Tuxedo 12c Release 1 (12.1.1) Behavior tpsvrinit() Handling tpsvrdone() Handling Tuxedo Java Server tpreturn() Method Tuxedo Java Server Exception Handling See Also ATMI Java Server User Interfaces TuxedoJavaServer Oracle Tuxedo Java Context TJATMI Primitives for Tuxedo Java Applications Java API Programming Examples 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 TypedBuffers for Tuxedo Java Applications Limitations for Typedbuffer Support Get/Set Service Information Exception Trace See Also 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 See Also Reference 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 See Also Oracle® Tuxedo 12c <Default ? Font>Release 2 (12.2.2) Oracle Tuxedo Programming an Oracle Tuxedo Application Using Java, 12c <Default ? Font>Release 2 (12.2.2)
Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.