WebLogic Tuxedo Connector Administration Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Note: For more information on the WebLogic Server management, including the WebLogic Tuxedo Connector, see the WebLogic Server MBean Reference.
The following sections describe how to establish connectivity and provide security between WebLogic Server applications and Tuxedo environments. WebLogic Tuxedo Connector uses attributes that are analogous to the interoperability attributes required for the communication between Tuxedo access points.
The following sections provide WebLogic Tuxedo Connector configuration information:
Several options can specify the conditions under which an access point tries to establish a connection with a remote access point. Specify these conditions using the ConnectionPolicy
attribute in the Connections tab of the Local Tuxedo Access Points and Remote Tuxedo Access Points configurations of your WTC Service. You can select any of the following connection policies:
For connection policies of On Startup
and Incoming Only
, Dynamic Status is invoked. Dynamic Status checks and reports on the status of imported services associated with each remote access point.
The WTC local access point has three connection policies: ON_DEMAND
, INCOMING_ONLY
, and ON_STARTUP
. The default is ON_DEMAND
.
The WTC remote access point has four connection policies: ON_DEMAND
, INCOMING_ONLY
, ON_STARTUP
, and LOCAL
. The default is LOCAL
. When you specify LOCAL
for the remote access point connection policy setting, the local access point connection policy is used. The remote access point connection policy takes precedence over the local access point connection policy.
The local access point connection policy works as a backup for remote access point connection. At the WTC startup, WTC processes through all the remote access point definitions and decides the actual connection policy similar to the following table.
The following information clarifies the interaction between the connection policy for the local access point, the connection policy for the remote access point, and the settings of these parameters at the remote domain.
A policy of On Startup
means that an access point attempts to establish a connection with its remote access points at gateway server initialization time. The connection policy retries failed connections at regular intervals determined by the RetryInterval
parameter and the MaxRetries
parameter. To request a connection at boot time, set the ConnectionPolicy
attribute in the Connections tab of your local Tuxedo access point to On Startup
.
You can control the frequency of automatic connection attempts by specifying the interval (in seconds) during which the access point should wait before trying to establish a connection again. The minimum value is 0; the default value is 60, and maximum value is 2147483647.
Note: Use only when ConnectionPolicy
is set to On Startup
. For other connection policies, retry processing is disabled.
You indicate the number of times an access point tries to establish connections to remote access points before quitting by assigning a value to the MaxRetries
parameter: the minimum value is 0; the default and maximum value is 2147483647.
MaxRetries
to 0, automatic connection retry processing is turned off. The server does not attempt to connect to the remote access point automatically.MaxRetries
to a number, the access point tries to establish a connection the specified number of times before quitting.MaxRetries
to 2147483647, retry processing is repeated indefinitely or until a connection is established.Note: If the ConnectionPolicy
is not specified for the local access point, the WebLogic Tuxedo Connector uses a ConnectionPolicy
of 0n Demand
.
A connection policy of 0n Demand
means that a connection is attempted only when requested by either a client request to a remote service or an administrative start connection command.
A connection policy of Incoming Only
means that an access point does not establish a connection to remote access points upon starting. The access point is available for incoming connection requests from remote access points.
Note: A ConnectionPolicy
of LOCAL
is not valid for local access points.
A connection policy of LOCAL
indicates that a remote domain connection policy is explicitly defaulted to the local domain ConnectionPolicy
attribute value. If the remote access point ConnectionPolicy
is not defined, the system uses the setting specified by the associated local access point.
Note: In the Tuxedo T/ Domain, there is a limit of two (2) backup remote access points. The WebLogic Tuxedo Connector has no limit to the number of backup access points allowed to be configured for a service.
WebLogic Tuxedo Connector provides a failover mechanism that transfers requests to alternate remote access points when a failure is detected with a primary remote access point. It also provides failback to the primary remote access point when that access point is restored. This level of failover/failback depends on connection status. The access point must be configured with a connection policy of On Startup
or Incoming Only
to enable failover/failback.
To use failover/failback, you must specify ON_STARTUP
or INCOMING_ONLY
as the value of the Connection Policy
parameter.
A connection policy of 0n Demand
is unsuitable for failback as it operates on the assumption that the remote access point is always available. If you do not specify ON_STARTUP
or INCOMING_ONLY
as your connection policy, your servers cannot fail over to the alternate remote access points that you have specified with the Tuxedo RDOM
parameter.
Note: A remote access point is available if a network connection to it exists; a remote access point is unavailable if a network connection to it does not exist.
To support failover, you must specify the remote access points responsible for executing a particular service. You must specify the following in your WTC Service:
Suppose a service, TOUPPER, is available from two remote access points: TDOM1
and TDOM3
. Your WTC Service would include two Remote Tuxedo Access Point configurations and two Imported Services configurations in your WTC Service. The WTC Service defined in the config.xml
file would contain the following:
<wtc-server>
<name>WTCsimpapp</name>
<wtc-local-tux-dom>
<access-point>TDOM2</access-point>
<access-point-id>TDOM2</access-point-id>
<connection-policy>ON_DEMAND</connection-policy>
<interoperate>no</interoperate>
<nw-addr>//123.123.123.123:5678</nw-addr>
<name>myLoclTuxDom</name>
<security>NONE</security>
</wtc-local-tux-dom>
<wtc-remote-tux-dom>
<wtc-export>
<access-point>TDOM1</access-point>
<access-point-id>TDOM1</access-point-id>
<local-access-point>TDOM2</local-access-point>
<nw-addr>//123.123.123.123:1234</nw-addr>
<name>myRTuxDom</name>
</wtc-remote-tux-dom>
<wtc-remote-tux-dom>
<access-point>TDOM3</access-point>
<access-point-id>TDOM3</access-point-id>
<local-access-point>TDOM2</local-access-point>
<nw-addr>//234.234.234.234:5555</nw-addr>
<name>2ndRemoteTuxDom</name>
</wtc-remote-tux-dom>
<ejb-name>tuxedo.services.TOLOWERHome</ejb-name>
<local-access-point>TDOM2</local-access-point>
<name>myExportedResources</name>
<resource-name>TOLOWER</resource-name>
</wtc-export>
<wtc-import>
<name>imp0</name>
<resource-name>TOUPPER</resource-name><local-access-point>TDOM2</local-access-point>
</wtc-import>
<remote-access-point-list>TDOM1,TDOM3</remote-access-point-list>
<remote-name>TOUPPER</remote-name>
<wtc-import>
<name>imp1</name>
<resource-name>TOUPPER</resource-name><local-access-point>TDOM2</local-access-point>
</wtc-server>
<name>2ndImportedResources</name>
<remote-access-point-list>TDOM3,TDOM1</remote-access-point-list>
<remote-name>TOUPPER</remote-name>
</wtc-import>
Failback occurs when a network connection to the primary remote access point is reestablished for any of the following reasons:
To support link-level failover, you must specify the correct failover sequence information in the comma separated syntax <nw-addr>
XML tag in the WTCRemoteTuxDomMBean
and WTCLocalTuxDomMBean
definitions. The order of the network addresses determines the order of preference for failover.
Note: The value of the XML tag is checked for correct syntax. If the syntax is not correct, the InvalidAttributeException is thrown.
The semantic of the link-level failover is late binding, which means the existence and availability is not checked when the MBean is created. This is to allow users to add the machine to DNS after the WTC configuration is created, but before the TDomain session connection is created.
The correct syntax in config.xml
will be as follow using comma separated syntax for the <nw-addr>
XML tag.
<nw-addr>//host1:4001</nw-addr> --> only one host, no link-level failover
<nw-addr>//host1:4001,//host2:4001</nw-addr> --> can failover to host2 <nw-addr>//host1:4001,//host2:4001,//host3:4001</nw-addr> --> can failover from host 1 to host2, and if host2 still not available then failover to host3
The following example configures a WTC local access point named WDOM
, and one TDomain session with name TDOM
. This TDomain session also defines a remote access point named DOM1
. The TDomain session in this case is a session between WDOM
and TDOM
. The local access point will try to listen on end point "//pluto:4100"
first; if fails to create a listening endpoint, the session attempts to create a listening endpoint on "//saturn:4101"
. If WTC migrated from pluto
to saturn
, then the remote access point DOM1
is able to contact WDOM
using "//saturn:4101"
.
If the remote access point DOM1
migrates from host mercury to host mars, the WDOM
can contact DOM1
at "//mars:4001"
.
The order of network address specified in the list provides order preference. For WDOM
, "//pluto:4100"
is the first choice for creating a listening endpoint and "//saturn:4101"
is the second choice. For remote access point DOM1
, "//mercury:4001"
is the first choice to create a connection from WDOM
to DOM1
and "//mars:4001"
is the second choice.
Listing 3-1 Link-level Failover Configuration
<wtc-server>
<name>myWTCserver</name>
....
<wtc-local-tux-dom>
<name>WDOM</name>
<access-point>WDOM</access-point>
<access-point-id>WDOM</access-point-id>
<nw-addr>//pluto:4100,//saturn:4101</nw-addr>
</wtc-local-tux-dom>
<wtc-remote-tux-dom>
<name>TDOM</name>
<access-point>DOM1</access-point>
<access-point-id>DOM1</access-point-id>
<local-access-point>WDOM</local-access-point>
<nw-addr>//mercury:4001,//mars:4001</nw-addr>
</wtc-remote-tux-dom>
.....
</wtc-server>
To configure WTC to support MBSTRING buffers, you must specify the encoding you want to use in the RemoteMBEncoding
attribute of the WTCResources
definition. This attribute is optional and if it is not specified or is invalid, Java's default encoding is used.
TypedMBString
uses the conversion function java.lang.String
class for converting between Unicode and an external encoding. TypedMBString
uses a map file to map the encoding names between Java and GNU iconv, which is used by the C language API of MBSTRING. The map file is mbencmap
, which is a text-based file in $WL_HOME
/server/lib
directory as a default. The map file creates a HashMap with each "user_name java_name
" pair. You can customize the map file.
An encoding map file contains one or more lines with the following syntax.
<user_name> <java_name1>[,<java_name2>,[java_name3,...]]
By specifying multiple java_names
in a line, multiple Java encoding names are mapped to a single user_name
. The user_name
always maps to the first java_name
in the line.
Note: Tuxedo 6.5 users should set the Interoperate
parameter to Yes.
Domain gateways can be made to authenticate incoming connections requested by remote access points and outgoing connections requested by local access points. Application administrators can define when security should be enforced for incoming connections from remote access points. You can specify the level of security used by a particular local access point by setting the Security
attribute in the Security tab of the local Tuxedo access point configuration of your WTC Service. There are three levels of password security:
weblogic.wtc.gwt.genpasswd
utility to create encrypted application passwords.weblogic.wtc.gwt.genpasswd
utility to create encrypted local and remote passwords.The Security
attribute in the Security tab of the local Tuxedo access point of your WTC Service must match the SECURITY
attribute of the *DM_LOCAL_DOMAINS section of the Tuxedo domain configuration file.
Note: For more information on how to assign a PasswordKey
, see How to Set WebLogic Tuxedo Connector Properties.
The /Domain architecture with SECURITY=DM_PW
requires a password for each connection principal. Each TDomain session between two TDomain gateways has two distinctive connection principals associated with it; by default, they are represented by Domain IDs. The default Session Authentication with DM_PW
requires both sides configure two secrets for both connection principals so they can authenticate each other. The following example provides configurations for both WTC and Tuxedo.
WDOM1
with DOMAIN ID WDOM1
TDOM1
with DOMAIN ID TDOM1
DM_PW
Then WTC needs to configure a password pair for TDOMAIN session (WDOM1, TDOM1
). For example, the password pair is represent as (pWDOM1, pTDOM1
)for the TDomain Session (WDOM1, TDOM1
). Then Tuxedo TDOMAIN needs to configure a password pair for TDOMAIN session (TDOM1, WDOM1
). The password pair should be (pTDOM1, pWDOM1
) in this case
Use weblogic.wtc.gwt.genpasswd
to generate encrypted passwords for Local Password, Remote Password, and App Password attributes. The utility uses a key to encrypt a password that is copied into the Password or Resources configuration of your WTC Service.
-Dweblogic.wtc.PasswordKey=
mykey
Call the utility without any arguments to display the command line options.
$ java weblogic.wtc.gwt.genpasswd
Usage: genpasswd Key <LocalPassword|RemotePassword|AppPassword> <local|remote|application>
Call the utility with a key value, password to encrypt, and the type of password.
$ java weblogic.wtc.gwt.genpasswd Key1 LocalPassword1 local
The utility will respond with the encoded password and password IV. Cut and paste the results into the appropriate fields in Password configuration of your WTC Service.
Local Password : my_password
Local Password IV: my_passwordIV
my_passwordIV
into the PasswordIV field. This section provides examples of each of the password element types.
The following example uses key1 to encrypt "LocalPassword1" as the password of the local access point.
$ java weblogic.wtc.gwt.genpasswd key1 LocalPassword1 local
Local Password : FMTCg5Vi1mTGFds1U4GKIQQj7s2uTlg/ldBfy6Kb+yY=
Local Password IV : NAGikshMiTE=
The following example uses mykey to encrypt "RemotePassword1" as the password for the remote access point.
$ java weblogic.wtc.gwt.genpasswd mykey RemotePassword1 remote
Remote Password : A/DgdJYOJunFUFJa62YmPgsHan8pC02zPT0T7EigaVg=
Remote Password IV : ohYHxzhYHP0=
The following example uses mykey to encrypt "test123" as the application password.
$ java weblogic.wtc.gwt.genpasswd mykey test123 application
App Password : uou2MALQEZgNqt8abNKiC9ADN5gHDLviqO+Xt/VjakE=
App Password IV : eQuKjOaPfCw=
Your Resources attributes are:
Access Control Lists (ACLs) limit the access to local services within a local access point by restricting the remote Tuxedo access point that can execute these services. Inbound policy from a remote Tuxedo access point is specified using the AclPolicy
attribute. Outbound policy towards a remote Tuxedo domain is specified using the CredentialPolicy
attribute. This allows WebLogic Server and Tuxedo applications to share the same set of users and the users are able to propagate their credentials from one system to the other.
The valid values for AclPolicy
and CredentialPolicy
are:
If the WebLogic Tuxedo Connector ACL Policy is set to Local,
access to local services does not depend on the remote user credentials. The Tuxedo remote access point ID is authenticated as a local WebLogic Server user. To allow WebLogic Tuxedo Connector to authenticate a DOMAINID
as a local user, use the WebLogic Server Console to complete the following steps:
The Users table displays. The User table lists the names of all users defined in the Authentication provider.
If the WebLogic Tuxedo Connector ACL Policy is GLOBAL
, access to local services depends on the remote user credentials.
If a remote domain is running with the CredentialPolicy
set to GLOBAL
, the request has the credentials of the remote user, thus the ability to access the local service depends on this credential.
When CredentialPolicy
is set to GLOBAL
for WTC, then WLS user credential is propagated from WTC to the remote Tuxedo domain. If a remote Tuxedo domain is also configured with ACL_POLICY
set to GLOBAL
, then it will accept the WLS user credential and use it to access Tuxedo services. If a remote Tuxedo domain is configured with ACL_POLICY
to LOCAL
, then it will discard the received WLS user credential and use WTC DOMAINID
to access Tuxedo services.
When CredentialPolicy
is set to LOCAL
for WTC, then WLS user credential is not propagated to a remote Tuxedo domain.
Tuxedo 6.5 users should set the Interoperate
parameter to Yes
. The AclPolicy
and CredentialPolicy
elements are ignored and the Tuxedo remote access point ID is authenticated as a local WebLogic Server user. If you require User Security features and use the WebLogic Tuxedo Connector, you will need to upgrade to Tuxedo 7.1 or higher.
The following sections provide information on how to configure WebLogic Tuxedo provide user security information to Tuxedo:
The TpUsrFile plug-in provides traditional Tuxedo TpUserFile functionality for users who do not need single point security administration or custom security authentication. Use the following steps to configure WebLogic Tuxedo Connector to provide security between Tuxedo and WebLogic Server applications using the TpUsrFile plug-in AppKey Generator:
Set the security
attribute in the Security tab of the local Tuxedo access point of your WTC Service to match the SECURITY parameter of the *DM_LOCAL_DOMAINS section of the Tuxedo domain configuration file.
Configure the Security tab of the remote Tuxedo access point of your WTC Service to establish an inbound and outbound Access Control List (ACL) policy.
Perform the following steps to prepare the WebLogic Server environment:
You must have a copy of the Tuxedo tpusr
file in your WebLogic Server environment. Copy the tpusr
file from TUXEDO to the WebLogic Server application environment or generate your own tpusr
file. For more information on how to create a Tuxedo tpusr file, see How to Enable User-Level Authenticationhttp://download.oracle.com/docs/cd/E13203_01/tuxedo/tux90/sec/secadm.htm#1239966.
The location of the TpUsrFile can be specified from your remote Tuxedo access point configurations or from your Resources configuration. You may find it convenient assign the value of the TpUsrFile attribute globally at the WTC Service level, rather than by assigning it individually on all of your remote Tuxedo access point configurations. Use the following guidelines to help you determine where to best configure the TpUsrFile attribute:
The LDAP plug-in provides single point security administration that allows you to maintain user security information in a WebLogic Server embedded LDAP server and use the WebLogic Server Console to administer the security information from a single system. Requires Tuxedo 8.1 and higher.Use the following steps to configure WebLogic Tuxedo Connector to provide security between Tuxedo and WebLogic Server applications using the LDAP Plug-in AppKey Generator:
Detailed information on how to implement single point security administration, see Implementing Single Point Security Administration. For information on WebLogic Security, see Understanding WebLogic Security.
Set the security
attribute in the Security tab of the local Tuxedo access point of your WTC Service to match the SECURITY parameter of the *DM_LOCAL_DOMAINS section of the Tuxedo domain configuration file.
Configure the Security tab of the remote Tuxedo access point of your WTC Service to establish an inbound and outbound Access Control List (ACL) policy.
Perform the following steps to prepare the WebLogic Server environment:
Note: For information on how to create a Custom Plug-in, see How to Create a Custom AppKey Plug-in.
The Custom plug-in provides the ability for you to create customized security authentication. Use the following steps to configure WebLogic Tuxedo Connector to provide security between Tuxedo and WebLogic Server applications using the Custom Plug-in AppKey Generator:
Set the security
attribute in the Security tab of the local Tuxedo access point of your WTC Service to match the SECURITY parameter of the *DM_LOCAL_DOMAINS section of the Tuxedo domain configuration file.
Configure the Security tab of the remote Tuxedo access point of your WTC Service to establish an inbound and outbound Access Control List (ACL) policy.
Perform the following steps to prepare the WebLogic Server environment:
The Allow Anonymous attribute on the Security tab of a remote Tuxedo access point specifies whether the anonymous user is allowed to access Tuxedo. If the anonymous user is allowed to access Tuxedo, the value of the Default AppKey attribute is used for TpUsrFile and LDAP AppKey plug-ins. The TpUsrFile and LDAP plug-ins do not allow users that are not defined in user database to access Tuxedo unless the Allow Anonymous attribute is enabled. Interaction with the Custom AppKey plug-in depends on the design of the Custom AppKey generator.
The default value of the Default AppKey is -1. If you wish to use this value, you must make sure that your Tuxedo environment has a user assigned to that key value. You should avoid assigning the Default AppKey value to 0. In some systems, this specifies the user as root.
It is important to understand the differences between how ATMI services and CORBA services authenticate an anonymous user. ATMI services rely on the Default AppKey value sent with the message. Corba services use the default WebLogic Server anonymous user name <anonymous> to identify the user credential defined in the Tuxedo tpusr file. CORBA users must configure the anonymous user using one of the following methods to become an authenticated user:
You can use encryption to ensure data privacy. In this way, a network-based eavesdropper cannot learn the content of messages or application-generated messages flowing from one domain gateway to another. You configure this security mechanism by setting the MINENCRYPTBITS
and MAXENCRYPTBITS
attributes of the Security tab in the local Tuxedo access points and remote Tuxedo access points configurations of your WTC Service.
Note: Encryption requires appropriate licensing. For more information on license requirements, see Licensing.
![]() ![]() |
![]() |
![]() |