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

Part Number E24395-02

weblogic.management.configuration
Interface MessagingBridgeMBean

All Superinterfaces:
ConfigurationMBean, DeploymentMBean

public interface MessagingBridgeMBean
extends DeploymentMBean

This MBean represents a WebLogic messaging bridge. A messaging bridge instance interoperates between separate implementations of WebLogic JMS or between WebLogic JMS and another messaging product.

For WebLogic JMS and third-party JMS products, a messaging bridge communicates with a configured source and target destinations using the resource adapters provided with WebLogic Server.

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 BRIDGE_POLICY_AUTO
           
static String BRIDGE_POLICY_MANUAL
           
static String BRIDGE_POLICY_SCHEDULED
           
static String BRIDGE_QOS_ATMOST_ONCE
           
static String BRIDGE_QOS_DUPLICATE_OKAY
           
static String BRIDGE_QOS_EXACTLY_ONCE
           
 
Fields inherited from interface weblogic.management.configuration.DeploymentMBean
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 long getBatchInterval()
          The maximum amount of time, in milliseconds, that a messaging bridge instance waits before sending a batch of messages in one transaction, regardless of whether the Batch Size has been reached or not.
 int getBatchSize()
          The number of messages that are processed within one transaction.
 int getIdleTimeMaximum()
          The maximum amount of time, in seconds, that a messaging bridge instance remains idle.
 boolean getPreserveMsgProperty()
          Specifies if message properties are preserved when messages are forwarded by a bridge instance.
 String getQualityOfService()
          The QOS (quality of service) for this messaging bridge instance.
 int getReconnectDelayIncrease()
          The incremental delay time, in seconds, that a messaging bridge instance increases its waiting time between one failed reconnection attempt and the next retry.
 int getReconnectDelayMaximum()
          The longest time, in seconds, that a messaging bridge instance waits between one failed attempt to connect to the source or target, and the next retry.
 int getReconnectDelayMinimum()
          The minimum amount of time, in seconds, that a messaging bridge instance waits before it tries to reconnect to the source or target destination after a failure.
 String getSelector()
          The filter for messages that are sent across the messaging bridge instance.
 BridgeDestinationCommonMBean getSourceDestination()
          The source destination from which this messaging bridge instance reads messages.
 BridgeDestinationCommonMBean getTargetDestination()
          The target destination where a messaging bridge instance sends the messages it receives from the source destination.
 int getTransactionTimeout()
          The amount of time, in seconds, that the transaction manager waits for each transaction before timing it out.
 boolean isAsyncEnabled()
          Specifies if a messaging bridge instance forwards in asynchronous messaging mode.
 boolean isDurabilityEnabled()
          Specifies whether or not the messaging bridge allows durable messages.
 boolean isQOSDegradationAllowed()
          Specifies if this messaging bridge instance allows the degradation of its QOS (quality of service) when the configured QOS is not available.
 boolean isStarted()
          Specifies the initial operating state of a targeted messaging bridge instance.
 void setAsyncEnabled(boolean asyncEnabled)
          Sets the value of the AsyncEnabled attribute.
 void setBatchInterval(long interval)
          Sets the value of the BatchInterval attribute.
 void setBatchSize(int size)
          Sets the value of the BatchSize attribute.
 void setDurabilityEnabled(boolean durable)
          Sets the value of the DurabilityEnabled attribute.
 void setIdleTimeMaximum(int time)
          Sets the value of the IdleTimeMaximum attribute.
 void setPreserveMsgProperty(boolean preserveMsgProperty)
          Sets the value of the preserveMsgProperty attribute.
 void setQOSDegradationAllowed(boolean degradationAllowed)
          Sets the value of the QOSDegradationAllowed attribute.
 void setQualityOfService(String qos)
          Sets the value of the QualityOfService attribute.
 void setReconnectDelayIncrease(int time)
          Sets the value of the ReconnectDelayIncrease attribute.
 void setReconnectDelayMaximum(int time)
          Sets the value of the ReconnectDelayMaximum attribute.
 void setReconnectDelayMinimum(int time)
          Sets the value of the ReconnectDelayMinimum attribute.
 void setSelector(String selector)
          Sets the value of the Selector attribute.
 void setSourceDestination(BridgeDestinationCommonMBean sourceDestination)
          Sets the value of the SourceDestination attribute.
 void setStarted(boolean started)
          Sets the value of the Started attribute.
 void setTargetDestination(BridgeDestinationCommonMBean targetDestination)
          Sets the value of the TargetDestination attribute.
 void setTransactionTimeout(int timeout)
          Sets the value of the TransactionTimeout attribute.
 
Methods inherited from interface weblogic.management.configuration.DeploymentMBean
addTarget, getDeploymentOrder, getTargets, removeTarget, setDeploymentOrder, setTargets
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 

Field Detail

BRIDGE_POLICY_AUTO

static final String BRIDGE_POLICY_AUTO
See Also:
Constant Field Values

BRIDGE_POLICY_MANUAL

static final String BRIDGE_POLICY_MANUAL
See Also:
Constant Field Values

BRIDGE_POLICY_SCHEDULED

static final String BRIDGE_POLICY_SCHEDULED
See Also:
Constant Field Values

BRIDGE_QOS_EXACTLY_ONCE

static final String BRIDGE_QOS_EXACTLY_ONCE
See Also:
Constant Field Values

BRIDGE_QOS_ATMOST_ONCE

static final String BRIDGE_QOS_ATMOST_ONCE
See Also:
Constant Field Values

BRIDGE_QOS_DUPLICATE_OKAY

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

getSourceDestination

BridgeDestinationCommonMBean getSourceDestination()

The source destination from which this messaging bridge instance reads messages.

Returns:
The sourceDestination value

setSourceDestination

void setSourceDestination(BridgeDestinationCommonMBean sourceDestination)
                          throws InvalidAttributeValueException

Sets the value of the SourceDestination attribute.

Parameters:
sourceDestination - The new sourceDestination value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getSourceDestination()
Default Value:
null

getTargetDestination

BridgeDestinationCommonMBean getTargetDestination()

The target destination where a messaging bridge instance sends the messages it receives from the source destination.

Returns:
The targetDestination value

setTargetDestination

void setTargetDestination(BridgeDestinationCommonMBean targetDestination)
                          throws InvalidAttributeValueException

Sets the value of the TargetDestination attribute.

Parameters:
targetDestination - The new targetDestination value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getTargetDestination()
Default Value:
null

getSelector

String getSelector()

The filter for messages that are sent across the messaging bridge instance.

Only messages that match the selection criteria are sent across the messaging bridge:

Returns:
The selector value

setSelector

void setSelector(String selector)
                 throws InvalidAttributeValueException

Sets the value of the Selector attribute.

Parameters:
selector - The new selector value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getSelector()

getQualityOfService

String getQualityOfService()

The QOS (quality of service) for this messaging bridge instance.

Returns:
The qualityOfService value

setQualityOfService

void setQualityOfService(String qos)
                         throws InvalidAttributeValueException

Sets the value of the QualityOfService attribute.

Parameters:
qos - The new qualityOfService value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getQualityOfService()
Default Value:
MessagingBridgeMBean.BRIDGE_QOS_EXACTLY_ONCE
Valid Values:
MessagingBridgeMBean.BRIDGE_QOS_EXACTLY_ONCE,MessagingBridgeMBean.BRIDGE_QOS_ATMOST_ONCE,MessagingBridgeMBean.BRIDGE_QOS_DUPLICATE_OKAY

isQOSDegradationAllowed

boolean isQOSDegradationAllowed()

Specifies if this messaging bridge instance allows the degradation of its QOS (quality of service) when the configured QOS is not available.

Returns:
The qOSDegradationAllowed value

setQOSDegradationAllowed

void setQOSDegradationAllowed(boolean degradationAllowed)
                              throws InvalidAttributeValueException

Sets the value of the QOSDegradationAllowed attribute.

Parameters:
degradationAllowed - The new qOSDegradationAllowed value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.isQOSDegradationAllowed()
Default Value:
false

isDurabilityEnabled

boolean isDurabilityEnabled()

Specifies whether or not the messaging bridge allows durable messages.

When enabled and the source destination is a JMS topic, a messaging bridge instance uses a durable subscription to ensure that no messages are lost in the event of a failure. DurabilityEnabled ignored if the source destination is a JMS queue.

Returns:
The durabilityEnabled value

setDurabilityEnabled

void setDurabilityEnabled(boolean durable)
                          throws InvalidAttributeValueException

Sets the value of the DurabilityEnabled attribute.

Parameters:
durable - The new durabilityEnabled value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.isDurabilityEnabled()
Default Value:
true

getReconnectDelayMinimum

int getReconnectDelayMinimum()

The minimum amount of time, in seconds, that a messaging bridge instance waits before it tries to reconnect to the source or target destination after a failure.


setReconnectDelayMinimum

void setReconnectDelayMinimum(int time)
                              throws InvalidAttributeValueException

Sets the value of the ReconnectDelayMinimum attribute.

Parameters:
time - The new reconnectDelayMinimum value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getReconnectDelayMinimum()
Default Value:
15
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getReconnectDelayIncrease

int getReconnectDelayIncrease()

The incremental delay time, in seconds, that a messaging bridge instance increases its waiting time between one failed reconnection attempt and the next retry.


setReconnectDelayIncrease

void setReconnectDelayIncrease(int time)
                               throws InvalidAttributeValueException

Sets the value of the ReconnectDelayIncrease attribute.

Parameters:
time - The new reconnectDelayIncrease value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getReconnectDelayIncrease()
Default Value:
5
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getReconnectDelayMaximum

int getReconnectDelayMaximum()

The longest time, in seconds, that a messaging bridge instance waits between one failed attempt to connect to the source or target, and the next retry.


setReconnectDelayMaximum

void setReconnectDelayMaximum(int time)
                              throws InvalidAttributeValueException

Sets the value of the ReconnectDelayMaximum attribute.

Parameters:
time - The new reconnectDelayMaximum value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getReconnectDelayMaximum()
Default Value:
60
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getIdleTimeMaximum

int getIdleTimeMaximum()

The maximum amount of time, in seconds, that a messaging bridge instance remains idle.

Returns:
The idleTimeMaximum value

setIdleTimeMaximum

void setIdleTimeMaximum(int time)
                        throws InvalidAttributeValueException

Sets the value of the IdleTimeMaximum attribute.

Parameters:
time - The new idleTimeMaximum value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getIdleTimeMaximum()
Default Value:
60
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

getTransactionTimeout

int getTransactionTimeout()

The amount of time, in seconds, that the transaction manager waits for each transaction before timing it out.

Returns:
The transactionTimeout value

setTransactionTimeout

void setTransactionTimeout(int timeout)
                           throws InvalidAttributeValueException

Sets the value of the TransactionTimeout attribute.

Parameters:
timeout - The new transactionTimeout value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getTransactionTimeout()
Default Value:
30
Maximum Value:
java.lang.Integer.MAX_VALUE
Minimum Value:
0

isAsyncEnabled

boolean isAsyncEnabled()

Specifies if a messaging bridge instance forwards in asynchronous messaging mode.

AsyncEnabled only applies to messaging bridge instances whose source destination supports asynchronous receiving. Messaging bridges instances that forward in asynchronous mode are driven by the source destination. A messaging bridge instance listens for messages and forwards them as they arrive. When AsyncEnabled is not selected, a bridge instance is forced to work in synchronous mode, even if the source supports asynchronous receiving.

Note: For a messaging bridge instance with a QOS of Exactly-once to work in asynchronous mode, the source destination has to support the MDBTransaction interface. Otherwise, the bridge automatically switches to synchronous mode if it detects that MDBTransaction is not supported by the source destination.

Returns:
The asyncEnabled value

setAsyncEnabled

void setAsyncEnabled(boolean asyncEnabled)
                     throws InvalidAttributeValueException

Sets the value of the AsyncEnabled attribute.

Parameters:
asyncEnabled - The new asyncEnabled value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.isAsyncEnabled()
Default Value:
true

isStarted

boolean isStarted()

Specifies the initial operating state of a targeted messaging bridge instance.

After a messaging bridge has started forwarding messages (running), use Started to temporarily suspend an active messaging bridge instance or restart an stopped messaging bridge instance.

Returns:
The started value

setStarted

void setStarted(boolean started)
                throws InvalidAttributeValueException

Sets the value of the Started attribute.

Parameters:
started - The new started value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.isStarted()
Default Value:
true

getBatchSize

int getBatchSize()

The number of messages that are processed within one transaction.

Batch Size only applies to a messaging bridge instance forwarding messages in synchronous mode and has a QOS (quality of service) that requires two-phase transactions.

Returns:
The batchSize value

setBatchSize

void setBatchSize(int size)
                  throws InvalidAttributeValueException

Sets the value of the BatchSize attribute.

Parameters:
size - The new batchSize value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getBatchSize()
Default Value:
10
Minimum Value:
0

getBatchInterval

long getBatchInterval()

The maximum amount of time, in milliseconds, that a messaging bridge instance waits before sending a batch of messages in one transaction, regardless of whether the Batch Size has been reached or not.

Returns:
The batchInterval value

setBatchInterval

void setBatchInterval(long interval)
                      throws InvalidAttributeValueException

Sets the value of the BatchInterval attribute.

Parameters:
interval - The new batchInterval value
Throws:
InvalidAttributeValueException
See Also:
MessagingBridgeMBean.getBatchInterval()
Default Value:
-1

getPreserveMsgProperty

boolean getPreserveMsgProperty()

Specifies if message properties are preserved when messages are forwarded by a bridge instance.

If the target bridge destination is on wls 9.0 or higher, the following message properties are preserved:

If the target bridge destination is on wls between 6.0 and 8.1 or on a foreign JMS server, the following message properties are preserved:

If the target bridge destination is on wls 5.1 or older, no properties are preserved.

Returns:
The PreserveMsgProperty value

setPreserveMsgProperty

void setPreserveMsgProperty(boolean preserveMsgProperty)
                            throws InvalidAttributeValueException

Sets the value of the preserveMsgProperty attribute.

Parameters:
preserveMsgProperty - Specifies if message properties are preserved when messages are forwarded by a bridge instance
Throws:
InvalidAttributeValueException
See Also:
#getpreserveMsgProperty
Default Value:
false

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