Book a demo

← Documentation

Tuxedo JOLT

OL IDE generates RPC entities for Oracle Tuxedo services from Jolt metadata (.jolt files). At runtime the SDK talks to Tuxedo through the Jolt client library, version 8.1.

Create the project

  1. File → New → OpenLegacy SDK Project (or Alt+Shift+N, or File → New → Project).
  2. Set the project name and default package.
  3. Select the Tuxedo JOLT backend.
  4. Set the app address. The address form used by the wizard is //{host}:{port} (for example //tuxedo.example.com:7000). The runtime property also accepts a URL such as http://localhost:8080.

Generate an entity

Tuxedo hides the original service source. The IDE does not parse C or COBOL. It reads a text interface file with a .jolt extension.

A service block names the service (also the invoke path) and each parameter:

service=GETUSERDETAILS
param=ID3
type=int
access=inout
param=ADDRESS3
type=string
access=out
AttributeMeaning
serviceService name and invocation path
paramField name in the generated entity
typeParameter type
accessin, out, or inout

Source fetcher. Fetch by service name. The IDE saves the result as a .jolt file under the project's legacy folder. Right-click that file → OpenLegacy → Generate Model.

The generated entity is annotated @RpcEntity(..., language=Languages.JOLT) with an EXECUTE action whose path is the service name. Fields use @RpcField (direction, originalName, legacyType) and @RpcNumericField where the type is numeric.

Types

Tuxedo typeJava type
STRINGString
INTEGER, INTInteger
FLOATFloat
DOUBLEDouble
SHORTShort
BYTEByte
CARRAYString

Lists versus flat fields

A Jolt entity holds flat fields or lists of flat fields. The metadata does not say which fields repeat. At runtime, if a flat field arrives as a list, the connector throws and lists the fields by occurrence count. Change that field to a list:

@RpcField(direction = Direction.OUTPUT, originalName = "ERR_TYPE", legacyType = "STRING")
@RpcList(count = 2)
private List<String> errType;

When the payload is really a group of related fields, model them as an @RpcPart and a List of that part. This check is on by default. Set validate-fields-as-list to false to turn it off.

Runtime properties

Prefix: ol.tuxedo.project.{projectName}

PropertyTypeDescription
app-addressStringServer address. Example: http://localhost:8080 or //host:port
idle-timeoutintIdle timeout. Default: 5 seconds
send-timeoutintSend timeout. Default: 5 seconds
receive-timeoutintReceive timeout. Default: 5 seconds
transaction-timeoutintTransaction timeout. Default: 5 seconds
userStringSession user
passwordStringSession password
user-roleStringJolt role
app-passwordStringApplication password
validate-fields-as-listbooleanWhen true (default), a flat field that arrives as a list throws

Invoke and transactions

Generated service code calls rpcSession.doAction with the entity action. The connector supports an explicit transaction:

Transaction transactionModule = rpcSession.getModule(Transaction.class);
transactionModule.begin();
entity = transactionModule.doAction(ActionUtil.getRpcAction(Getuserdetails.class), entity);
transactionModule.commit();

Tuxedo JOLT SDK: .jolt metadata, Jolt client 8.1, entity types, list detection, and connection properties.

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy