Sample: joltapp Migration
This is a sample for migrating joltapp from Jolt Repository to Oracle Tuxedo Service Metadata Repository.
- Use
tmloadcf
to compileUBBCONFIG
, which handlesJREPSVR
automatically. See the following listing Example for Compiling UBBCONFIG for an example. - Use
tmunloadrepos
to load Jolt Repository file namedjrep
(see Listing Example for jrep) to Oracle Tuxedo Service Metadata Repository file namedjolt.metarepos
(see Listing Example for jolt.metarepos). - Use
tmloadrepos
to insert the abovejolt.metarepos
file into the original Metadata Repository file. See the listing Example for Inserting jolt.metarepos to the Original Metadata Repository File for an example.
Listing Example for Compiling UBBCONFIG
$ tmloadcf -y ubb
$ tmunloadcf #to check whether JREPSVR still existed.
Listing Example for jrep
$ cat jrep
!JOLT1.0
add SVC/.NUMRECS:vs=1:ex=0:bt=FML32:\
bp:pn=NRECS:pt=integer:pf=33554435:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/.GETREC:vs=1:ex=0:bt=FML32:\
bp:pn=REPNAME:pt=string:pf=167772161:pa=wr:ep:\
bp:pn=REPVALUE:pt=string:pf=167772162:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/.GETSVC:vs=1:ex=0:bt=FML32:\
bp:pn=REPNAME:pt=string:pf=167772161:pa=wr:ep:\
bp:pn=REPVALUE:pt=string:pf=167772162:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/.ADDREC:vs=1:ex=0:bt=FML32:\
bp:pn=REPVALUE:pt=string:pf=167772162:pa=wr:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/.DELREC:vs=1:ex=0:bt=FML32:\
bp:pn=REPNAME:pt=string:pf=167772161:pa=wr:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/.GETKEYS:vs=1:ex=1:bt=FML32:\
bp:pn=PATTERN:pt=string:pf=167772164:pa=wr:ep:\
bp:pn=NRECS:pt=integer:pf=33554435:pa=rd:ep:\
bp:pn=REPNAME:pt=string:pf=167772161:po=0:pa=rd:ep:
add SVC/.GETALL:vs=1:ex=0:bt=FML32:\
bp:pn=PATTERN:pt=string:pf=167772164:pa=wr:ep:\
bp:pn=NRECS:pt=integer:pf=33554435:pa=rd:ep:\
bp:pn=REPVALUE:pt=string:pf=167772162:po=0:pa=rd:ep:
add SVC/.FLUSHCACHE:vs=1:ex=0:bt=FML32:\
bp:pn=REPNAME:pt=string:pf=167772161:po=200:pa=wr:ep:
add SVC/.GARBAGECOLLECT:vs=1:ex=0:bt=FML32:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:
add SVC/INQUIRY:vs=1:ex=1:bt=FML:\
bp:pn=ACCOUNT_ID:pt=integer:pf=33554436:pa=wr:ep:\
bp:pn=SBALANCE:pt=string:pf=167772164:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:\
bp:pn=FORMNAM:pt=string:pf=167772165:pa=rd:ep:
add SVC/WITHDRAWAL:vs=1:ex=1:bt=FML:\
bp:pn=ACCOUNT_ID:pt=integer:pf=33554436:pa=wr:ep:\
bp:pn=SAMOUNT:pt=string:pf=167772166:pa=wr:ep:\
bp:pn=SBALANCE:pt=string:pf=167772164:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:\
bp:pn=FORMNAM:pt=string:pf=167772165:pa=rd:ep:
add SVC/DEPOSIT:vs=1:ex=1:bt=FML:\
bp:pn=ACCOUNT_ID:pt=integer:pf=33554436:pa=wr:ep:\
bp:pn=SAMOUNT:pt=string:pf=167772166:pa=wr:ep:\
bp:pn=SBALANCE:pt=string:pf=167772164:pa=rd:ep:\
bp:pn=BALANCE:pt=float:pf=100663303:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:\
bp:pn=BALANCE:pt=float:pf=100663303:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:\
bp:pn=FORMNAM:pt=string:pf=167772165:pa=rd:ep:
add SVC/TRANSFER:vs=1:ex=1:bt=FML:\
bp:pn=ACCOUNT_ID:pt=integer:pf=33554436:po=2:pa=wr:ep:\
bp:pn=SAMOUNT:pt=string:pf=167772166:pa=wr:ep:\
bp:pn=SBALANCE:pt=string:pf=167772164:po=2:pa=rd:ep:\
bp:pn=STATLIN:pt=string:pf=167772163:pa=rd:ep:\
bp:pn=FORMNAM:pt=string:pf=167772165:pa=rd:ep:
add PKG/BANKAPP:INQUIRY:DEPOSIT:WITHDRAWAL:TRANSFER:
add SVC/TOUPPER:vs=1:ex=1:bt=STRING:\
bp:pn=STRING:pt=string:pf=167772161:pa=rw:ep:
add PKG/SIMPSERV:TOUPPER:
Listing Example for jolt.metarepos
$ tmunloadrepos jrep >jolt.metarepos
# #Generated from Repository file :
/u01/common/patches/huchchen/TUX13c64/LC/bld/qa/sanity_tests/apps/joltapp/
jrep
#
#####################
# service : .GETALL #
#####################
service=.GETALL
export=N
inbuf=FML32
outbuf=FML32
version=1
param=PATTERN
type=string
access=in
param=NRECS
type=integer
access=out
param=REPVALUE
count=0
type=string
access=out
######################
# service : .GETKEYS #
######################
service=.GETKEYS
export=Y
inbuf=FML32
outbuf=FML32
version=1
param=PATTERN
type=string
access=in
param=NRECS
type=integer
access=out
param=REPNAME
count=0
type=string
access=out
#####################
# service : .ADDREC #
#####################
service=.ADDREC
export=N
inbuf=FML32
outbuf=FML32
version=1
param=REPVALUE
type=string
access=in
param=STATLIN
type=string
access=out
######################
# service : TRANSFER #
######################
service=TRANSFER
export=Y
inbuf=FML
outbuf=FML
version=1
param=ACCOUNT_ID
count=2
type=integer
access=in
param=SAMOUNT
type=string
access=in
param=SBALANCE
count=2
type=string
access=out
param=STATLIN
type=string
access=out
param=FORMNAM
type=string
access=out
########################
# service : WITHDRAWAL #
########################
service=WITHDRAWAL
export=Y
inbuf=FML
outbuf=FML
version=1
param=ACCOUNT_ID
type=integer
access=in
param=SAMOUNT
type=string
access=in
param=SBALANCE
type=string
access=out
param=STATLIN
type=string
access=out
param=FORMNAM
type=stringaccess=out
#############################
# service : .GARBAGECOLLECT #
#############################
service=.GARBAGECOLLECT
export=N
inbuf=FML32
outbuf=FML32
version=1
param=STATLIN
type=string
access=out
#####################
# service : TOUPPER #
#####################
service=TOUPPER
export=Y
inbuf=STRING
outbuf=STRING
version=1
param=STRING
type=string
access=inout
#####################
# service : .DELREC #
#####################
service=.DELREC
export=N
export=N
inbuf=FML32
outbuf=FML32
version=1
param=REPNAME
type=string
access=in
param=STATLIN
type=string
access=out
#########################
# service : .FLUSHCACHE #
#########################
service=.FLUSHCACHE
export=N
inbuf=FML32
outbuf=FML32
version=1
param=REPNAME
count=200
type=string
access=in
######################
# service : .NUMRECS #
######################
service=.NUMRECS
export=N
inbuf=FML32
outbuf=FML32
version=1
param=NRECS
type=integer
access=out
param=STATLIN
type=string
access=out
#####################
# service : INQUIRY #
#####################
service=INQUIRY
export=Y
inbuf=FML
outbuf=FML
version=1
param=ACCOUNT_ID
type=integer
access=in
param=SBALANCE
type=string
access=out
param=STATLIN
type=string
access=out
param=FORMNAM
type=string
access=out
#####################
# service : DEPOSIT #
#####################
service=DEPOSIT
export=Y
inbuf=FML
outbuf=FML
version=1
param=ACCOUNT_ID
type=integer
access=in
param=SAMOUNT
type=string
access=in
param=SBALANCE
type=string
access=out
param=BALANCE
type=float
access=out
param=STATLIN
type=string
access=out
param=FORMNAM
type=string
access=out
#####################
# service : .GETSVC #
#####################
service=.GETSVC
export=N
inbuf=FML32
outbuf=FML32
version=1
param=REPNAME
type=string
access=in
param=REPVALUE
type=string
access=out
param=STATLIN
type=string
access=out
#####################
# service : .GETREC #
#####################
service=.GETREC
export=N
inbuf=FML32
outbuf=FML32
version=1
param=REPNAME
type=string
access=in
param=REPVALUE
type=string
access=out
param=STATLIN
type=string
access=out
Listing Example for Inserting jolt.metarepos to the Original Metadata Repository File
tmloadrepos -i meta.data jolt.metarepos