1. Define a class that inherits from TuxedoJavaServer
3.
4. Implement the service method which should use TPSVCINFO as its only argument parameter, as follows:
a.
b.
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.
f. Call TuxAppContext.tpreturn() to return the reply data to clientFollowing is a simple example that implements the TOUPPER service. It includes three steps:Listing 3‑1 Java Class DefinitionListing 3‑2 shows an configuration example that exports MyTuxedoJavaServer.JAVATOUPPER() method as Tuxedo service name JAVATOUPPER and MyTuxedoJavaServer.JAVATOUPPERFORWARD() method as Tuxedo service name JAVATOUPPERFORWARD.Listing 3‑2 Java Server Configuration FileListing 3‑3 UBB Config File ConfigurationListing 3‑4 shows an example that implements the WRITEDB_SVCTRN_COMMIT service which inserts the user request string into the table: TUXJ_TRAN_TEST.Listing 3‑4 Class DefinitionListing 3‑5 Java Server Configuration FileListing 3‑6 UBB Conf File Configuration