This section describes how to modify the above example to support container-managed transactions. In this modified example, TIBCO Enterprise Message Service server participates in a distributed transaction started by WebLogic server.
In the web browser, load the page, http://<
machineName
>:7001/examplesWebApp/index.jsp
. Click on the Administration Console link. Enter weblogic
as the Username and Password and click Sign In.
TIBCO.xatcf
and the contents of the Remote JNDI Name box with XATopicConnectionFactory
. Click Apply.To create the JMS Connection factory that supports XA, perform the following:
ejb-jar.xml
, within the <ejb-jar>
descriptor, after the <enterprise-beans>
descriptor:<assembly-descriptor> <container-transaction> <method> <ejb-name>exampleMessageDriven1</ejb-name> <method-name>*</method-name> </method> <method> <ejb-name>exampleMessageDriven2</ejb-name> <method-name>*</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor>
<connection-factory-jndi-name>
in the file weblogic-ejb-jar.xml
. To use a message driven bean with container managed transactions, it should use a JMS connection factory that supports XA. Change the value of the element <connection-factory-jndi-name>
to TIBCO.xatcf
.
TIBCO Enterprise Message Service™ Application Integration Guide Software Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |