ATMI C Function Reference
tpgetrepos()
- retrieves service parameter information from a Tuxedo service metadata repository file.
#include <atmi.h>
int tpgetrepos(char
*reposfile,
FBFR32*
idata,
FBFR32**
odata)
tpgetrepos() provides an alternative repository access interface to the .TMMETAREPOS
service provided by TMMETADATA(5).
It retrieves service parameters from a Tuxedo service metadata repository file. To use tpgetrepos(), the metadata repository file must reside on the native client or server that initiates the request. This allows for repository information access even when TMMETADATA(5)has not been booted.
Note: tpgetrepos()
can also be used to view Jolt repository files. It cannot modify an existing Jolt repository file or create a new one.
tpgetrepos()
accepts the following parameters:
specifies the path name of a file accessible on the current machine where the Tuxedo Metadata Repository is located. The caller must have read permission for this file.
METAREPOS(5)describes the FML32 buffer format tpgetrepos()uses. It is similar to the format used by the Tuxedo MIB.
tpgetrepos() returns 0 on success. On failure, it sets tperrno
and returns -1. On most failure conditions, the TA_ERROR
field in *odata is populated with information about the specific error, as is done by the Tuxedo MIB.
Upon failure, tpgetrepos()
sets tperrno
to one of the following values:
Note: Except for TPEINVAL
, odata
is modified to include TA_ERROR
, TA_STATUS
for each service entry to further qualify the error condition.
Invalid arguments were specified. The reposfile value is invalid or idata
or odata
are not pointers to FML32
typed buffers.
The MIB
-like request failed. odata is updated and returned to the caller with FML32
fields indicating the cause of the error as discussed in MIB(5)
.
tpgetrepos()
was improperly called. The reposfile file argument given is not a valid repository file.
An operating system error has occurred. A numeric value representing the system call that failed is available in Uunixerr
.
This interface is available only on BEA Tuxedo release 9.0 or later.
The following library files are required:
${TUXDIR}/lib/libtrep.a
${TUXDIR}/lib/libtrep.so.<rel>
${TUXDIR}/lib/libtrep.lib
The libraries must be linked manually when using buildclient. The user must use: -L${TUXDIR}/lib -ltrep
tpsetrepos(3c)
, tmloadrepos(1), tmunloadrepos(1), TMMETADATA(5), Managing The Tuxedo Service Metadata Repository