This section lists key deployment elements that affect the behavior of MDBs:
Table 10-1 summarizes the deployment elements in the message-destination-descriptor
element of weblogic-ejb-jar.xml
.
Table 10-1 weblogic-ejb-jar.xml Deployment Elements for MDBs
Element | Description | Default |
---|---|---|
The JNDI name of the JMS ConnectionFactory that the message-driven EJB should look up to create its queues and topics. See How to Set connection-factory-jndi-name. |
|
|
Maps to a resource within a JMS module defined in |
n/a |
|
The JNDI name used to associate a MDB with an actual JMS Queue or Topic deployed in the WebLogic Server JNDI tree. See How to Set destination-jndi-name. |
n/a |
|
Maps to a resource within a JMS module defined in |
n/a |
|
This optional element allows you to specify a particular WorkManager for the bean. |
n/a |
|
Specifies whether an MDB that accesses a WebLogic JMS distributed queue in the same cluster consumes from all distributed destination members or only those members local to the current Weblogic Server. |
|
|
Indicates whether you want durable topic subscriptions to be automatically deleted when an MDB is undeployed or removed. |
|
|
Indicates whether or not you want the EJB container to generate a unique client-id for every instance of an MDB. Enabling this flag makes it easier to deploy durable MDBs to multiple server instances in a WebLogic Server cluster. |
|
|
The initial number of seconds to suspend an MDB's JMS connection when the EJB container detects a JMS resource outage. See Configuring Suspension of Message Delivery During JMS Resource Outages. |
|
|
The number of inactive instances of an MDB that exist in WebLogic Server when it is started. |
0 |
|
The initial contextFactory that the EJB container uses to create its connection factories. See How to Set initial-context-factory. |
|
|
The client id for the a message-driven bean associated with a durable subscriber topic. See "Defining the Client ID" in Programming JMS for Oracle WebLogic Server. |
|
|
The number of seconds between attempts by the EJB container to reconnect to a JMS destination that has become unavailable. See Migration and Recovery for Clustered MDBs. |
10 seconds |
|
The maximum size of the free pool of inactive MDBs. |
1000 |
|
Specifies the maximum number of messages that can be in a transaction for this MDB. |
n/a |
|
The maximum number of seconds to suspend an MDB's JMS connection when the EJB container detects a JMS resource outage. See Configuring Suspension of Message Delivery During JMS Resource Outages. |
|
|
Configures the behavior of the WebLogic Server free pool for message-driven EJBs. |
n/a |
|
The URL provider to be used by the InitialContext. Typically, this is the host:port. See How to Set provider-url. |
|
|
Identifies the resource adapter that this MDB receives messages from. |
n/a |
|
Maps application roles in the |
n/a |
|
An EJB timer object. For more information, see Programming the EJB Timer Service in Programming WebLogic Enterprise JavaBeans for Oracle WebLogic Server. |
n/a |
|
The maximum duration for an EJB's container-initiated transactions, in seconds, after which the transaction is rolled back. See Configuring Transaction Management Strategy for an MDB. |
|
|
Enables backwards compatibility for WLS Version 8.1-style polling. |
False |
Table 9–2 lists key deployment elements for MDBs in the ejb
element of weblogic-application.xml
.
Table 10-2 weblogic-application.xml Elements for MDBs
Element | Description | Default |
---|---|---|
|
Controls when MDBs start processing messages. With default setting of true, an MDB starts processing messages as soon as it is deployed, even if WebLogic Server has not completed booting. This can cause an MDB application to access uninitialized services or applications during boot up and, therefore, to fail. Set to false to defer message processing until after WebLogic Server opens its listen port. |
|
Table 9–3 lists key J2EE deployment elements for MDBs that you configure in the message-driven
element of ejb-jar.xml
.
Table 10-3 Key J2EE Deployment Elements for MDBs
Element | Description | Allowable Values |
---|---|---|
|
Specifies JMS message acknowledgment semantics for the |
|
|
Defines information about the expected configuration properties of the message-driven bean in its operational environment. This may include information about message acknowledgement, message selector, expected destination type, and so on. The configuration information is expressed in terms of name/value configuration properties. |
The properties that are recognized for a particular message-driven bean are determined by the messaging type. |
|
Specifies the type of the JMS destination—the Java interface expected to be implemented by the destination. |
|
|
Specifies the type of the destination. |
Specified by the Java interface expected to be implemented by the destination. |
|
Specifies the message listener interface of the message-driven bean. |
Valid message listener interface. |
|
Specifies whether a JMS topic subscription is intended to be durable or nondurable. |
|
|
Specifies an enterprise bean's transaction management type. Note: If transaction-type is set to Container, trans-attribute must be set to Required. |
|
|
Specifies how the container must manage the transaction boundaries when delegating a method invocation to an enterprise bean's business method. Set to |
|
Table 10-4 summarizes activationConfig
name-value pairs supported by WebLogic Server.
Table 10-4 activationConfig Properties
ActivationConfigProperty Property Name | Description | Default |
---|---|---|
|
The JNDI name of the JMS ConnectionFactory that the message-driven EJB should look up to create its queues and topics. See How to Set connection-factory-jndi-name. |
|
|
Maps to a resource within a JMS module defined in |
n/a |
|
The JNDI name used to associate a MDB with an actual JMS Queue or Topic deployed in the WebLogic Server JNDI tree. See How to Set destination-jndi-name. |
n/a |
|
Maps to a resource within a JMS module defined in |
n/a |
|
Specifies whether an MDB that accesses a WebLogic JMS distributed queue in the same cluster consumes from all distributed destination members or only those members local to the current Weblogic Server. |
|
|
Indicates whether you want durable topic subscriptions to be automatically deleted when an MDB is undeployed or removed. |
|
|
The initial number of seconds to suspend an MDB's JMS connection when the EJB container detects a JMS resource outage. See Configuring Suspension of Message Delivery During JMS Resource Outages. |
|
|
The initial contextFactory that the EJB container uses to create its connection factories. See How to Set initial-context-factory. |
|
|
The client id for the a message-driven bean associated with a durable subscriber topic. See "Defining the Client ID" in Programming JMS for Oracle WebLogic Server. |
|
|
The number of seconds between attempts by the EJB container to reconnect to a JMS destination that has become unavailable. See Migration and Recovery for Clustered MDBs. |
10 seconds |
|
Specifies the maximum number of messages that can be in a transaction for this MDB. |
n/a |
|
The maximum number of seconds to suspend an MDB's JMS connection when the EJB container detects a JMS resource outage. See Configuring Suspension of Message Delivery During JMS Resource Outages. |
|
|
The URL provider to be used by the InitialContext. Typically, this is the host:port. See How to Set provider-url. |
|
|
Identifies the resource adapter that this MDB receives messages from. |
n/a |
|
Enables backwards compatibility for WLS Version 8.1-style polling. |
False |