Using the Default Connection Factories

2-8 Programming JMS for Oracle WebLogic Server

2.4.1.1 Using the Default Connection Factories

WebLogic JMS defines two default connection factories, which you can look up using the following JNDI names: ■ weblogic.jms.ConnectionFactory ■ weblogic.jms.XAConnectionFactory You only need to create a user-defined a connection factory if the settings of the default factories are not suitable for your application. The main difference between the preconfigured settings for the default connection factories is the default value for the XA Connection Factory Enabled attribute which is used to enable JTA transactions, as shown in the following table. An XA factory is required for JMS applications to use JTA user-transactions, but is not required for transacted sessions. For more information about using transactions with WebLogic JMS, see Chapter 12, Using Transactions with WebLogic JMS. All other default factory configuration attributes are set to the same default values as a user-defined connection factory. For more information about the XA Connection Factory Enabled attribute, and to see the default values for the other connection factory attributes, see JMS Connection Factory: Configuration: Transactions in the Oracle WebLogic Server Administration Console Help. Another distinction when using the default connection factories is that you have no control over targeting the WebLogic Server instances where the connection factory may be deployed. However, you can disable the default connection factories on a per-server basis. For more information on enabling or disabling the default connection factories, see Servers: Configuration: Services in the Oracle WebLogic Server Administration Console Help. To deploy a connection factory on specific independent servers, on specific servers within a cluster, or on an entire cluster, you must configure a new connection factory and specify the appropriate target, as explained in Connection Factory Configuration in Configuring and Managing JMS for Oracle WebLogic Server.

2.4.1.2 Configuring and Deploying Connection Factories