Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
12c Release 1 (12.1.1)

Part Number E24395-02

weblogic.management.configuration
Interface JTAMBean

All Superinterfaces:
ConfigurationMBean

public interface JTAMBean
extends ConfigurationMBean

This interface provides access to the JTA configuration attributes. The methods defined herein are applicable for JTA configuration at the domain level.

Deprecation of MBeanHome and Type-Safe Interfaces

This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime. For more information, see "Developing Manageable Applications with JMX."


Field Summary
static String CLIENTCERTREQUIRED
           
static String SSLNOTREQUIRED
           
static String SSLREQUIRED
           
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 int getAbandonTimeoutSeconds()
          Specifies the maximum amount of time, in seconds, a transaction manager persists in attempting to complete the second phase of a two-phase commit transaction.
 int getBeforeCompletionIterationLimit()
          The maximum number of cycles that the transaction manager performs the beforeCompletion synchronization callback for this WebLogic Server domain.
 int getCheckpointIntervalSeconds()
          The interval at which the transaction manager creates a new transaction log file and checks all old transaction log files to see if they are ready to be deleted.
 int getCompletionTimeoutSeconds()
          Specifies the maximum amount of time, in seconds, a transaction manager waits for all resource managers to respond and indicate if the transaction can be committed or rolled back.
 boolean getForgetHeuristics()
          Specifies whether the transaction manager automatically performs an XA Resource forget operation for heuristic transaction completions.
 int getMaxResourceRequestsOnServer()
          Maximum number of concurrent requests to resources allowed for each server.
 long getMaxResourceUnavailableMillis()
          Maximum duration time, in milliseconds, that a resource is declared dead.
 int getMaxTransactions()
          The maximum number of simultaneous in-progress transactions allowed on a server in this WebLogic Server domain.
 int getMaxUniqueNameStatistics()
          The maximum number of unique transaction names for which statistics are maintained.
 long getMaxXACallMillis()
          Maximum allowed time duration, in milliseconds, for XA calls to resources.
 String getSecurityInteropMode()
          Specifies the security mode of the communication channel used for XA calls between servers that participate in a global transaction.
 long getSerializeEnlistmentsGCIntervalMillis()
          The time interval, in milliseconds, at which internal objects used to serialize resource enlistment are cleaned up.
 int getTimeoutSeconds()
          Specifies the maximum amount of time, in seconds, an active transaction is allowed to be in the first phase of a two-phase commit transaction.
 int getUnregisterResourceGracePeriod()
          The amount of time, in seconds, a transaction manager waits for transactions involving the resource to complete before unregistering a resource.
 String getWSATTransportSecurityMode()
           Specifies transport security mode required by WebService Transaction endpoints.
 boolean isTwoPhaseEnabled()
          Indicates that the two-phase commit protocol is used to coordinate transactions across two or more resource managers.
 boolean isWSATIssuedTokenEnabled()
          Specifies whether to use issuedtoken to enable authentication between the WS-AT coordinator and participant.
 void setAbandonTimeoutSeconds(int timeout)
          Sets the value of the AbandonTimeoutSeconds attribute.
 void setBeforeCompletionIterationLimit(int iterations)
          Sets the value of the BeforeCompletionIterationLimit attribute.
 void setCheckpointIntervalSeconds(int interval)
          Sets value of the CheckpointIntervalSeconds attribute.
 void setCompletionTimeoutSeconds(int completionTimeout)
          Sets the value of the CompletionTimeoutSeconds attribute.
 void setForgetHeuristics(boolean forget)
          Sets the value of the ForgetHeuristics attribute.
 void setMaxTransactions(int max)
          Sets the value of the MaxTransactions attribute.
 void setMaxUniqueNameStatistics(int max)
          Sets the value of the MaxUniqueNameStatistics attribute.
 void setParallelXAEnabled(boolean enabled)
          Sets the value of the ParallelXAEnabled attribute.
 void setSecurityInteropMode(String mode)
          Sets the value of the SecurityInteropMode attribute.
 void setTimeoutSeconds(int timeout)
          Sets the value of the TimeoutSeconds attribute.
 void setTwoPhaseEnabled(boolean isTwoPhaseEnabled)
          Sets the value of the TwoPhaseEnabled attribute.
 void setUnregisterResourceGracePeriod(int seconds)
          Sets the unregisterResource grace period.
 void setWSATIssuedTokenEnabled(boolean enabled)
          Sets the value of the WSATIssuedTokenEnabled attribute.
 void setWSATTransportSecurityMode(String mode)
          Sets the value of the WSATTransportSecurityMode attribute.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 

Field Detail

SSLNOTREQUIRED

static final String SSLNOTREQUIRED
See Also:
Constant Field Values

SSLREQUIRED

static final String SSLREQUIRED
See Also:
Constant Field Values

CLIENTCERTREQUIRED

static final String CLIENTCERTREQUIRED
See Also:
Constant Field Values
Method Detail

getTimeoutSeconds

int getTimeoutSeconds()

Specifies the maximum amount of time, in seconds, an active transaction is allowed to be in the first phase of a two-phase commit transaction. If the specified amount of time expires, the transaction is automatically rolled back.

Returns:
Transaction timeout in seconds.
Default Value:
30

setTimeoutSeconds

void setTimeoutSeconds(int timeout)
                       throws InvalidAttributeValueException,
                              DistributedManagementException

Sets the value of the TimeoutSeconds attribute.

Parameters:
timeout - Transaction timeout in seconds.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getTimeoutSeconds()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
1

getAbandonTimeoutSeconds

int getAbandonTimeoutSeconds()

Specifies the maximum amount of time, in seconds, a transaction manager persists in attempting to complete the second phase of a two-phase commit transaction.

During the second phase of a two-phase commit transaction, the transaction manager continues to try to complete the transaction until all resource managers indicate that the transaction is completed. After the abandon transaction timer expires, no further attempt is made to resolve the transaction. If the transaction is in a prepared state before being abandoned, the transaction manager rolls back the transaction to release any locks held on behalf of the abandoned transaction.

Returns:
Abandon timeout in seconds. Default is 24 hours.
Default Value:
86400

setAbandonTimeoutSeconds

void setAbandonTimeoutSeconds(int timeout)
                              throws InvalidAttributeValueException,
                                     DistributedManagementException

Sets the value of the AbandonTimeoutSeconds attribute.

Parameters:
timeout - Abandon timeout in seconds.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getAbandonTimeoutSeconds()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
1

getCompletionTimeoutSeconds

int getCompletionTimeoutSeconds()

Specifies the maximum amount of time, in seconds, a transaction manager waits for all resource managers to respond and indicate if the transaction can be committed or rolled back.

Returns:
Completion timeout in seconds.
Default Value:
0

setCompletionTimeoutSeconds

void setCompletionTimeoutSeconds(int completionTimeout)
                                 throws InvalidAttributeValueException,
                                        DistributedManagementException

Sets the value of the CompletionTimeoutSeconds attribute.

Parameters:
completionTimeout - Completion timeout in seconds.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getCompletionTimeoutSeconds()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
-1

getForgetHeuristics

boolean getForgetHeuristics()

Specifies whether the transaction manager automatically performs an XA Resource forget operation for heuristic transaction completions.

When enabled, the transaction manager automatically performs an XA Resource forget() operation for all resources as soon as the transaction learns of a heuristic outcome. Disable this feature only if you know what to do with the resource when it reports a heuristic decision.

Returns:
true if heuristic transactions are to be forgotten in affected resource managers, false otherwise.
Default Value:
true

setForgetHeuristics

void setForgetHeuristics(boolean forget)
                         throws InvalidAttributeValueException,
                                DistributedManagementException

Sets the value of the ForgetHeuristics attribute.

Parameters:
forget - Whether or not to forget heuristic transactions in affected resource managers.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getForgetHeuristics()

getBeforeCompletionIterationLimit

int getBeforeCompletionIterationLimit()

The maximum number of cycles that the transaction manager performs the beforeCompletion synchronization callback for this WebLogic Server domain.

Nothing prevents a Synchronization object from registering another during beforeCompletion, even those whose beforeCompletions have already been called. For example, an EJB can call another in its ejbStore() method. To accommodate this, the transaction manager calls all Synchronization objects, then repeats the cycle if new ones have been registered. This count sets a limit to the number of cycles that synchronization occurs.

Returns:
The maximum beforeCompletion iterations
Default Value:
10

setBeforeCompletionIterationLimit

void setBeforeCompletionIterationLimit(int iterations)
                                       throws InvalidAttributeValueException,
                                              DistributedManagementException

Sets the value of the BeforeCompletionIterationLimit attribute.

Parameters:
iterations - The maximum number of beforeCompletion iterations among registered objects.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getBeforeCompletionIterationLimit()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
1

getMaxTransactions

int getMaxTransactions()

The maximum number of simultaneous in-progress transactions allowed on a server in this WebLogic Server domain.

Returns:
The maximum number of concurrent transactions.
Default Value:
10000

setMaxTransactions

void setMaxTransactions(int max)
                        throws InvalidAttributeValueException,
                               DistributedManagementException

Sets the value of the MaxTransactions attribute.

Parameters:
max - The maximum number of concurrent transactions.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getMaxTransactions()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
1

getMaxUniqueNameStatistics

int getMaxUniqueNameStatistics()

The maximum number of unique transaction names for which statistics are maintained.

The first 1001 unique transaction names are maintained as their own transaction name and stored in each statistic. After the 1001st transaction name is reached, the transaction name is stored as weblogic.transaction.statistics.namedOverflow, and the transaction statistic is also merged and maintained in weblogic.transaction.statistics.namedOverflow.

A transaction name typically represents a category of business transactions, such as "funds-transfer."

Returns:
Limit of individual transaction name statistics.
Default Value:
1000

setMaxUniqueNameStatistics

void setMaxUniqueNameStatistics(int max)
                                throws InvalidAttributeValueException,
                                       DistributedManagementException

Sets the value of the MaxUniqueNameStatistics attribute.

Parameters:
max - Limit of individual transaction name statistics
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getMaxUniqueNameStatistics()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getMaxResourceRequestsOnServer

int getMaxResourceRequestsOnServer()

Maximum number of concurrent requests to resources allowed for each server.

Returns:
The maxResourceRequestsOnServer value
Default Value:
50

getMaxXACallMillis

long getMaxXACallMillis()

Maximum allowed time duration, in milliseconds, for XA calls to resources. If a particular XA call to a resource exceeds the limit, the resource is declared unavailable.

Returns:
The maxXACallMillis value
Default Value:
120000

getMaxResourceUnavailableMillis

long getMaxResourceUnavailableMillis()

Maximum duration time, in milliseconds, that a resource is declared dead. After the duration, the resource is declared available again, even if the resource provider does not explicitly re-register the resource.

Returns:
The maxResourceUnavailableMillis value
Default Value:
1800000

getCheckpointIntervalSeconds

int getCheckpointIntervalSeconds()

The interval at which the transaction manager creates a new transaction log file and checks all old transaction log files to see if they are ready to be deleted.

Returns:
The checkpointIntervalSeconds value
Default Value:
300

setCheckpointIntervalSeconds

void setCheckpointIntervalSeconds(int interval)
                                  throws InvalidAttributeValueException,
                                         DistributedManagementException

Sets value of the CheckpointIntervalSeconds attribute.

Parameters:
interval - The new checkpointIntervalSeconds value
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getCheckpointIntervalSeconds()
Maximum Value:
1800
Minimum Value:
10

getSerializeEnlistmentsGCIntervalMillis

long getSerializeEnlistmentsGCIntervalMillis()

The time interval, in milliseconds, at which internal objects used to serialize resource enlistment are cleaned up.

Returns:
The serializeEnlistmentsGCIntervalMillis value
Default Value:
30000
Minimum Value:
0

setParallelXAEnabled

void setParallelXAEnabled(boolean enabled)
                          throws InvalidAttributeValueException,
                                 DistributedManagementException

Sets the value of the ParallelXAEnabled attribute.

Parameters:
enabled - The new enabled value
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getParallelXAEnabled()

getUnregisterResourceGracePeriod

int getUnregisterResourceGracePeriod()

The amount of time, in seconds, a transaction manager waits for transactions involving the resource to complete before unregistering a resource. This grace period helps minimize the risk of abandoned transactions because of an unregistered resource, such as a JDBC data source module packaged with an application.

During the specified grace period, the unregisterResource call blocks until the call returns and no new transactions are started for the associated resource. If the number of outstanding transactions for the resource goes to 0, the unregisterResource call returns immediately.

At the end of the grace period, if outstanding transactions are associated with the resource, the unregisterResource call returns and a log message is written to the server on which the resource was previously registered.

Returns:
The unregisterResource grace period in seconds.
Default Value:
30

setUnregisterResourceGracePeriod

void setUnregisterResourceGracePeriod(int seconds)
                                      throws InvalidAttributeValueException,
                                             DistributedManagementException

Sets the unregisterResource grace period.

Parameters:
seconds - The new grace period value.
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getUnregisterResourceGracePeriod()
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getSecurityInteropMode

String getSecurityInteropMode()

Specifies the security mode of the communication channel used for XA calls between servers that participate in a global transaction. All server instances in a domain must have the same security mode setting.

Security Interoperability Mode options:

Returns:
The security interoperability mode.
Default Value:
"default"
Valid Values:
"default", "performance", "compatibility"

setSecurityInteropMode

void setSecurityInteropMode(String mode)
                            throws InvalidAttributeValueException,
                                   DistributedManagementException

Sets the value of the SecurityInteropMode attribute.

Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getSecurityInteropMode()

getWSATTransportSecurityMode

String getWSATTransportSecurityMode()

Specifies transport security mode required by WebService Transaction endpoints.

Transport Security options:

Returns:
The WSAT transport security mode.
Default Value:
"SSLNotRequired"
Valid Values:
"SSLNotRequired", "SSLRequired", "ClientCertRequired"

setWSATTransportSecurityMode

void setWSATTransportSecurityMode(String mode)
                                  throws InvalidAttributeValueException,
                                         DistributedManagementException

Sets the value of the WSATTransportSecurityMode attribute.

Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.getWSATTransportSecurityMode()

isWSATIssuedTokenEnabled

boolean isWSATIssuedTokenEnabled()

Specifies whether to use issuedtoken to enable authentication between the WS-AT coordinator and participant.

Default Value:
false

setWSATIssuedTokenEnabled

void setWSATIssuedTokenEnabled(boolean enabled)
                               throws InvalidAttributeValueException,
                                      DistributedManagementException

Sets the value of the WSATIssuedTokenEnabled attribute.

Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.isWSATIssuedTokenEnabled()

isTwoPhaseEnabled

boolean isTwoPhaseEnabled()

Indicates that the two-phase commit protocol is used to coordinate transactions across two or more resource managers.

If not selected:

Default Value:
true

setTwoPhaseEnabled

void setTwoPhaseEnabled(boolean isTwoPhaseEnabled)
                        throws InvalidAttributeValueException,
                               DistributedManagementException

Sets the value of the TwoPhaseEnabled attribute. When false, all transaction logging is disabled, including checkpoint records. Only one-phase commit processing is allowed.

Parameters:
isTwoPhaseEnabled - The new isTwoPhaseEnabled value
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JTAMBean.isTwoPhaseEnabled()

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
12c Release 1 (12.1.1)

Part Number E24395-02