[Top]
[Previous Page] [Next Page] [Bottom]
This chapter describes the task of administering services across multiple Domains by using the BEA TUXEDO Domains feature. This chapter discusses the following topics:
Using Domains provides the following benefits:
All domain configuration information is stored in a binary file, called the BDMCONFIG
file. You can create and
edit the domain gateway configuration file (DMCONFIG
file), with any UNIX text editor. You can update the
compiled BDMCONFIG
file
while the system is running by using the dmadmin
(1) command when using Domains. There must be one BDMCONFIG
file per BEA TUXEDO
application.
A BEA TUXEDO system domain gateway is a server supplied by the BEA TUXEDO system that
enables access to and from remote domains. Domains provides a gateway administrative
server (GWADM
) that
enables run-time administration of the Domains gateway group, and a Domains administrative
server (DMADM
) that
enables run-time administration of the Domains configuration information (BDMCONFIG
). You enable remote domain
access by specifying a gateway group and a domain administration group in the GROUPS
section of the TUXCONFIG
file, and by adding
entries for the gateway and the two administrative servers in the SERVERS
section.
In
Figure 8-1,DGW
is the domain gateway; GWADM
is the gateway administrative
server; DMADM
is the
Domains administrative server; and BDMCONFIG
is the Domains gateway configuration file.
Figure 8-1 BEA TUXEDO Domains Gateway
The following table describes the sections of the DMCONFIG
file.
To configure a local domain and a remote domain, perform the following tasks:
You need to set the following environment variables for the application to be configured successfully:
TUXDIR
-The BEA TUXEDO
system root directory (for example,
/opt/tuxedo
) TUXCONFIG
-The
application configuration file (for example, lapp.tux
or rapp.tux
)
BDMCONFIG
-The Domains
gateway configuration file (for example, lapp.bdm
or rapp.bdm
)
PATH
-Must include $TUXDIR/bin
LD_LIBRARY_PATH
-Must
include $TUXDIR/lib
$ TUXDIR=/opt/tuxedo
$ PATH=$TUXDIR/bin:$PATH
$ LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH
$ export TUXDIR PATH LD_LIBRARY_PATH
Build a local application configuration file using tmloadcf
(1), and a local domain
gateway configuration file using dmloadcf
(1).
The local application configuration file (lapp.ubb
) contains the information necessary to boot the local
application. This file is compiled into a binary data file (lapp.tux
), using tmloadcf
(1).
The local domain gateway configuration file (lapp.dom
) contains the information used by domain gateways for
communications with other domains. This file is compiled into a binary data file (lapp.bdm
), using dmloadcf
(1).
$ cd /home/lapp
$ TUXCONFIG=/home/lapp/lapp.tux; export
TUXCONFIG
$ tmloadcf -y lapp.ubb
$ BDMCONFIG=/home/lapp/lapp.dom; export BDMCONFIG
$ dmloadcf -y lapp.dom
$ tmboot -y
Build a remote application configuration file and a remote domain gateway configuration
file. The remote application configuration file (rapp.ubb
) contains the information used by domain gateways for
communication with other domains. This file is compiled into a binary data file (rapp.tux
).
The remote domain gateway configuration file (rapp.dom
) contains the information used by domain gateways to
initialize the context required for communications with other domains. This configuration
file is similar to the local domain gateway configuration file. The difference is in which
services are exported and imported. This file is compiled into a binary data file (rapp.bdm
).
$ cd /home/rapp
$ TUXCONFIG=/home/rapp/rapp.tux
;export
TUXCONFIG
$ tmloadcf -y rapp.ubb
$ BDMCONFIG=/home/rapp/rapp.dom
;export
BDMCONFIG
$ dmloadcf -y rapp.dom
$ tmboot -y
Once you create both the local and remote domains, you can then boot the application
using tmboot
(1). The
order in which the two domains are booted does not matter. Monitor the applications with dmadmin
(1).
Once both applications are booted, a client in the local application can call the TOUPPER
service residing in the
remote application.
The Domains example illustrated in
Figure 8-2 and throughout this chapter consists of two applications, both of which are based on thesimpapp
example provided with the
BEA TUXEDO system. The first application is called lapp
for "local
application"; the second, rapp
for "remote application." lapp is configured to allow its clients to access a
service called TOUPPER
,
which is advertised in rapp
.
Figure 8-2 A Local and a Remote Application (simpapp)
For the sample local application configuration file (lapp.ubb
) shown in
The following two server groups are defined:
DMADM
). GWADM
) and the domain gateway (GWTDOMAIN
). The following three servers are defined:
DMADM
-The domain
administrative server enables run-time administration of the configuration information
required by domain gateway groups. This server provides run-time administration of the
binary domain configuration file and supports a list of registered gateway groups. (There
must be only one instance of DMADM
per Domains application.) GWADM
-The gateway
administrative server enables run-time administration of a particular Domains gateway
group. This server gets domain configuration information from the DMADM
server. It also provides
administrative functionality and transaction logging for the gateway group. GWTDOMAIN
-The domain
gateway server enables access to and from remote Domains. It allows for interoperability
of two or more BEA TUXEDO domains. Information about the local and remote services it
needs to export and import is included in the domain configuration file. The domain
gateway server should always be configured with REPLYQ=N
. Listing 8-1 Example of a Local Application Configuration File
# lapp.ubb # *RESOURCES IPCKEY 111111
MASTER LAPP MODEL SHM *MACHINES giselle
LMID=LAPP TUXDIR="/opt/tuxedo" APPDIR="/home/lapp" TUXCONFIG="/home/lapp/lapp.tux"
*GROUPS
LDMGRP GRPNO=1 LMID=LAPP LGWGRP GRPNO=2 LMID=LAPP
*SERVERS
DMADM SRVGRP=LDMGRP SRVID=1 GWADM SRVGRP=LGWGRP SRVID=1GWTDOMAIN
SRVGRP=LGWGRP SRVID=2 REPLYQ=N
*SERVICES
For the sample local domain gateway configuration file (lapp.dom
), shown in
The DM_LOCAL_DOMAIN
section identifies the local domains and their associated gateway groups. This section has
one entry (LAPP
) and
specifies the parameters required for the domain gateway processes in that group, as
follows:
GWGRP
specifies the
name of the gateway server group as specified in the application. TYPE
of TDOMAIN
indicates that the local
domain will be communicating with another BEA TUXEDO domain. Other options are SNA and
OSI. DOMAINID
identifies
the name of the Domains gateway and must be unique across all Domains. The DM_REMOTE_DOMAINS
section identifies the known set of remote Domains and their characteristics. This section
has one entry (RAPP
). TYPE
is used to classify the type of
Domains. DomainsID
is a
unique domain identifier.
The DM_TDOMAIN
section defines the addressing information required by the BEA TUXEDO Domains feature.
Following are entries in the section for each local and remote domain specified in this
configuration file:
NWADDR
specifies
either the network address to accept connections from other BEA TUXEDO Domains (local
Domains entry), or the network address to connect to other BEA TUXEDO Domains (remote
Domains entry). The DM_LOCAL_SERVICES
section provides information about the services that are exported. This section has no
entries because no services are being exported.
The DM_REMOTE_SERVICES
section provides information about the services that are imported. The TOUPPER
service is imported so that
it can be accessed by clients in the local domains.
Listing 8-2 Example of a Local Domains Gateway Configuration File
# # lapp.dom # *DM_LOCAL_DOMAINS
LAPP GWGRP=LGWGRP TYPE=TDOMAIN DOMAINID="111111"
*DM_REMOTE_DOMAINS
RAPP TYPE=TDOMAIN DOMAINID="222222"
*DM_TDOMAIN
LAPP NWADDR="//mach1:5000"
RAPP NWADDR="//mach2:5000"
*DM_LOCAL_SERVICES
*DM_REMOTE_SERVICES
TOUPPER
For the sample remote application configuration file (rapp.ubb
), shown in
The following three server groups are defined:
SRVGP=RDMGRP
)
contains the Domains administrative server (DMADM
). SRVGP=RGWGRP
)
contains the gateway administrative server, GWADM
, and the Domains gateway, GWTDOMAIN
. SRVGP=APPGRP
)
contains the application server simpserv
.
The following four servers are defined:
DMADM
-The Domains
administrative server GWADM
-The gateway
administrative server GWTDOMAIN
-The Domains
gateway server simpserv
-The simple
application server that advertises the TOUPPER
service, which converts strings from lowercase to uppercase characters Listing 8-3 Example of a Remote Application Configuration File
# rapp.ubb # *RESOURCES IPCKEY 222222
MASTER RAPP
MODEL SHM *MACHINES
juliet
LMID=RAPP TUXDIR="/opt/tuxedo" APPDIR="/home/rapp" TUXCONFIG="/home/rapp/rapp.tux"
*GROUPS
RDMGRP GRPNO=1 LMID=RAPP RGWGRP GRPNO=2 LMID=RAPP APPGRP GRPNO=3 LMID=RAPP
*SERVERS
DMADM SRVGRP=RDMGRP SRVID=1 GWADM SRVGRP=RGWGRP SRVID=1GWTDOMAIN
SRVGRP=RGWGRP SRVID=2 REPLYQ=N simpserv SRVGRP=APPGRP SRVID=1
*SERVICES TOUPPER
For the sample remote domain gateway configuration file (rapp.dom
), shown in
This configuration file is similar to the local domain gateway configuration file. The difference is in which services are exported and imported.
The DM_LOCAL_SERVICES
section provides information about the services exported by each local domain. In this
example, the TOUPPER
service is exported and included in the DM_LOCAL_SERVICES
section. No service is imported so there are no
entries in the DM_REMOTE_SERVICES
section.
Listing 8-4 Example of a Remote Domains Gateway Configuration File
# rapp.dom #
*DM_LOCAL_DOMAINS
RAPP GWGRP=RGWGRP TYPE=TDOMAIN DOMAINID="222222"
*DM_REMOTE_DOMAINS
LAPP TYPE=TDOMAIN DOMAINID="111111"
*DM_TDOMAIN
RAPP NWADDR="//mach2:5000"
LAPP NWADDR="//mach1:5000"
*DM_LOCAL_SERVICES TOUPPER *DM_REMOTE_SERVICES
Data compression is useful in most applications and vital to supporting large
configurations. When data is sent between Domains, you can elect to compress it for faster
performance. This is configured by setting the CMPLIMIT
parameter in the dmconfig
(5). See
Because Domains can exist under diverse ownership, multiple ways are offered to enable you to provide sufficient security:
DM_LOCAL_SERVICES
section of the DMCONFIG
file. SECURITY=DM_PW
in dmconfig
(5). DM_ACCESS_CONTROL
section of the dmconfig
(5). MINENCRYPTBITS
and MAXENCRYPTBITS
in
the dmconfig
(5). (See To create a domain ACL, you must specify the name of the domain ACL and a list of the
remote domains that are part of the list (the Domain Import List) in the DM_ACCESS_CONTROL
section of the DMCONFIG
file. The following chart
describes these two fields.
Information for data-dependent routing used by gateways to route service requests (to
specific remote domains) is provided in the DM_ROUTING
section of the DMCONFIG
file. The FML32
, VIEW32
, FML
, VIEW
, X_C_TYPE
, and X_COMMON
typed buffers are
supported. To create a routing table for a domain, you must specify the buffer type for
which the routing entry is valid, the name of the routing entry and field, and the ranges
and associated remote domain names of the routing field. The following table describes
these fields.
[Top] [Previous Page] [Next Page] [Bottom]