Table of Contents Introduction to Oracle Tuxedo Java Programming Overview Programing Guidelines Tuxedo Java Server Threads and Java Class Instance Model Tuxedo Java Server tpsvrinit()/tpsvrdone() Handling tpsvrinit() Handling tpsvrdone() Handling Tuxedo Java Server tpreturn() Handling Tuxedo Java Server Exception Handling Programming Environment Updating the UBB Configuration File Listing 2‑1 UBB Configuration for ATMI Java Server Listing 2‑1 UBB Configuration for ATMI Java Server See Also ATMI Java Server User Interfaces TuxedoJavaServer Oracle Tuxedo Java Context TJATMI Primitives for Tuxedo Java Applications TypedBuffers for Tuxedo Java Applications Limitations for Typedbuffer Support Get/Set Service Information Exception Trace 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 4‑1 Java Class Definition Creating Java Server Configuration File Listing 4‑2 Java Server Configuration File Updating UBB Configuration File Listing 4‑3 UBB Config File Configuration Example: Implementing Java Service with Transaction Defining Java Classes Listing 4‑4 Class Definition Creating Java Server Configuration File Listing 4‑5 Java Server Configuration File Updating UBB Configuration File Listing 4‑6 UBB Conf File Configuration 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 5‑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 5‑2 Example: How to Add and Retrieve an Embedded TypedView32 Buffer in a TypedFML32 Buffer Listing 5‑3 Example FML Description Oracle® Tuxedo 12c Release 1 (12.1.1) Oracle Tuxedo Programming an Oracle Tuxedo Application Using Java, 12c Release 1 (12.1.1)
Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.