|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 MBean API Reference 11g Release 1 (10.3.1) Part Number E13945-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JTAMBean
This interface provides access to the JTA configuration attributes. The methods defined herein are applicable for JTA configuration at the domain level.
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 |
---|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
int |
getAbandonTimeoutSeconds()
The transaction abandon timeout seconds for transactions in the second phase of the two-phase commit (prepared and later). |
int |
getBeforeCompletionIterationLimit()
The maximum number of cycles that the transaction manager will perform 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. |
boolean |
getForgetHeuristics()
Specifies whether the transaction manager will automatically perform 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 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 will be maintained. |
long |
getMaxXACallMillis()
Maximum allowed duration of 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 interval at which internal objects used to serialize resource enlistment are cleaned up. |
int |
getTimeoutSeconds()
The transaction timeout seconds for active transactions, before the prepared state. |
int |
getUnregisterResourceGracePeriod()
The grace period (number of seconds) that the transaction manager waits for transactions involving the resource to complete before unregistering a resource. |
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 |
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 |
setSecurityInteropMode(String mode)
Sets the value of the SecurityInteropMode attribute. |
void |
setTimeoutSeconds(int timeout)
Sets the value of the TimeoutSeconds attribute. |
void |
setUnregisterResourceGracePeriod(int seconds)
Sets the unregisterResource grace period. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Method Detail |
---|
int getTimeoutSeconds()
The transaction timeout seconds for active transactions, before the prepared state.
If the transaction is still in the "active" state after this
time (counting from begin()
), it is automatically
rolled back. Once the transaction moves on to the prepared state,
however, this timeout does not apply; the transaction is retried
until all the resources are committed.
void setTimeoutSeconds(int timeout) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the TimeoutSeconds attribute.
timeout
- Transaction timeout in seconds.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getTimeoutSeconds()
int getAbandonTimeoutSeconds()
The transaction abandon timeout seconds for transactions in the second phase of the two-phase commit (prepared and later).
During the second phase of the two-phase commit process, the transaction manager will continue to try to complete the transaction until all resource managers indicate that the transaction is completed. Using this timeout, you can set the maximum time that a transaction manager will persist in attempting to complete a transaction during the second phase of the transaction. 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 will roll back the transaction to release any locks held on behalf of the abandoned transaction.
void setAbandonTimeoutSeconds(int timeout) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the AbandonTimeoutSeconds attribute.
timeout
- Abandon timeout in seconds.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getAbandonTimeoutSeconds()
boolean getForgetHeuristics()
Specifies whether the transaction manager will automatically
perform 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.
void setForgetHeuristics(boolean forget) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the ForgetHeuristics attribute.
forget
- Whether or not to forget heuristic transactions in affected resource managers.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getForgetHeuristics()
int getBeforeCompletionIterationLimit()
The maximum number of cycles that the transaction manager will perform 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 can happen.
void setBeforeCompletionIterationLimit(int iterations) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the BeforeCompletionIterationLimit attribute.
iterations
- The maximum number of beforeCompletion iterations among registered objects.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getBeforeCompletionIterationLimit()
int getMaxTransactions()
The maximum number of simultaneous in-progress transactions allowed on a server in this WebLogic Server domain.
void setMaxTransactions(int max) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the MaxTransactions attribute.
max
- The maximum number of concurrent transactions.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getMaxTransactions()
int getMaxUniqueNameStatistics()
The maximum number of unique transaction names for which statistics will be maintained.
A transaction name typically represents a category of business transactions (such as "funds-transfer")
void setMaxUniqueNameStatistics(int max) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the MaxUniqueNameStatistics attribute.
max
- Limit of individual transaction name statistics
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getMaxUniqueNameStatistics()
int getMaxResourceRequestsOnServer()
Maximum number of concurrent requests to resources allowed for each server.
long getMaxXACallMillis()
Maximum allowed duration of XA calls to resources. If a particular XA call to a resource exceeds the limit, the resource is declared unavailable.
long getMaxResourceUnavailableMillis()
Maximum duration in milliseconds that a resource is declared dead. After the duration, the resource will be declared available again, even if the resource provider does not explicitly re-register the resource.
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.
void setCheckpointIntervalSeconds(int interval) throws InvalidAttributeValueException, DistributedManagementException
Sets value of the CheckpointIntervalSeconds attribute.
interval
- The new checkpointIntervalSeconds value
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getCheckpointIntervalSeconds()
long getSerializeEnlistmentsGCIntervalMillis()
The interval at which internal objects used to serialize resource enlistment are cleaned up.
int getUnregisterResourceGracePeriod()
The grace period (number of seconds) that the transaction manager waits for transactions involving the resource to complete before unregistering a resource. The grace period can help 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 will block
until the call can return, 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 there are still outstanding transactions associated with the resource, the unregisterResource call returns and a log message is written on the server on which the resource was previously registered.
void setUnregisterResourceGracePeriod(int seconds) throws InvalidAttributeValueException, DistributedManagementException
Sets the unregisterResource grace period.
seconds
- The new grace period value.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getUnregisterResourceGracePeriod()
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:
anonymous
otherwise.
Man-in-the-middle attacks are possible if the admin channel is not enabled.anonymous
at all times. This implies a security risk since a malicious third party
could then try to affect the outcome of transactions using a man-in-the-middle attack.
void setSecurityInteropMode(String mode) throws InvalidAttributeValueException, DistributedManagementException
Sets the value of the SecurityInteropMode attribute.
InvalidAttributeValueException
DistributedManagementException
JTAMBean.getSecurityInteropMode()
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, 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 10.3.1 MBean API Reference 11g Release 1 (10.3.1) Part Number E13945-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |