![]() |
![]() |
BEA WebLogic Enterprise 4.2 Developer Center |
![]() HOME | SITE MAP | SEARCH | CONTACT | GLOSSARY | PDF FILES | WHAT'S NEW |
||
![]() Administration | TABLE OF CONTENTS | PREVIOUS TOPIC | NEXT TOPIC | INDEX |
This chapter describes the task of administering services across multiple Domains by using the BEA TUXEDO Domains feature. For information about configuring WebLogic Enterprise domains, refer to Chapter 9, "Configuring Multiple Domains (WLE System)."
This chapter discusses the following topics:
Using Domains provides the following benefits:
Benefits of Using BEA TUXEDO System Domains
All domain configuration information is stored in a binary file, called the 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 ( In Figure 10-1,
The following table describes the sections of the
To configure a local domain and a remote domain, perform the following tasks:
What is the domains gateway configuration file?
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.
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.
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 10-1 BEA TUXEDO Domains Gateway
Components of the DMCONFIG File
DMCONFIG
file.
Configuring Local and Remote Domains
You need to set the following environment variables for the application to be configured successfully:
Setting Environment Variables
TUXDIR
-The 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
)
On AIX, Build a local application configuration file using The local domain gateway configuration file ( Build a remote application configuration file and a remote domain gateway configuration file. The remote application configuration file ( The remote domain gateway configuration file ( Once you create both the local and remote domains, you can then boot the application using Once both applications are booted, a client in the local application can call the The Domains example illustrated in Figure and throughout this chapter consists of two applications, both of which are based on the
For the sample local application configuration file ( The following two server groups are defined:
LIBPATH
must be set instead of LD_LIBRARY_PATH
. On HP UX, SHLIB_PATH
must be set instead of LD_LIBRARY_PATH
. On NT, no variable for shared libraries is required.
Example
$ TUXDIR=/opt/tuxedo
$ PATH=$TUXDIR/bin:$PATH
$ LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH
$ export TUXDIR PATH LD_LIBRARY_PATH
Building a Local Application Configuration File and a Local Domains Gateway Configuration File
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).
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_bdm; export BDMCONFIG
$ dmloadcf -y lapp.dom
$ tmboot -y
Building a Remote Application Configuration File and a Remote Domains Gateway 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
).
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_bdm
; export
BDMCONFIG
$ dmloadcf -y rapp.dom
$ tmboot -y
tmboot
(1). The order in which the two domains are booted does not matter. Monitor the applications with dmadmin
(1).
TOUPPER
service residing in the remote application.
Example of a Domains-based Configuration
Simpapp
example provided with the BEA TUXEDO system. The first application is called lapp
for "local application;" the second application is called rapp
for "remote application." lapp
is configured to allow its clients to access a service called TOUPPER
, which is advertised in rapp
.A Local and a Remote Application (simpapp)
Defining the Local Domains Environment
lapp.ubb
) shown in Listing 10-1, only the required parameters are defined. Default settings are used for the other parameters.
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.)
Listing 10-1
Example of a Local Application Configuration File
# lapp.ubb
#
*RESOURCES
IPCKEY 111111MASTER 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 ( The Defining the Local and Remote Domains, Addressing, and Imported and Exported Services
lapp.dom
), shown in Listing 10-2, only the required parameters are defined. Default settings are used for the other parameters.
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.
DOMAINID
identifies the name of the Domains gateway and must be unique across all Domains.
The 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.
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 The DM_LOCAL_SERVICES
section provides information about the services that are exported. This section has no entries because no services are being exported.
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 10-2
Example of a Local Domains Gateway Configuration File
#
# lapp.dom
#
*DM_LOCAL_DOMAINSLAPP 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 Listing 10-3, only the required parameters are defined. Default settings are used for the other parameters.
The following three server groups are defined:
SRVGP=RDMGRP
) contains the Domains administrative server (DMADM
).
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
Listing 10-3
Example of a Remote Application Configuration File
# rapp.ubb
#
*RESOURCES
IPCKEY 222222MASTER RAPP
MODEL SHM
*MACHINESjuliet
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 ( This configuration file is similar to the local domain gateway configuration file. The difference is in which services are exported and imported.
The Defining the Exported Services
rapp.dom
), shown in Listing 10-4, only the required parameters are defined. Default settings are used for the other parameters.
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 10-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 Chapter 6, "Building Networked Applications," for more information on data compression.
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.
MINENCRYPTBITS
and MAXENCRYPTBITS
in the dmconfig
(5). (See Chapter 6, "Building Networked Applications," for more information.)
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
Information for data-dependent routing used by gateways to route service requests (to specific remote domains) is provided in the
Creating a Domain Access Control List (ACL)
DM_ACCESS_CONTROL
section of the DMCONFIG
file. The following chart describes these two fields.
Routing Service Requests to Remote Domains
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.