All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.messaging.jmq.jmsclient.JMSXATopicSessionImpl Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2000, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0, which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the
 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
 * version 2 with the GNU Classpath Exception, which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 */

package com.sun.messaging.jmq.jmsclient;

import jakarta.jms.*;

import com.sun.jms.spi.xa.*;

/**
 * An XATopicSession provides a regular TopicSession which can be used to create TopicSubscribers and TopicPublishers
 * (optional).
 *
 * 

* XASession extends the capability of Session by adding access to a JMS provider's support for JTA (optional). This * support takes the form of a javax.transaction.xa.XAResource object. The functionality of this object * closely resembles that defined by the standard X/Open XA Resource interface. * *

* An application server controls the transactional assignment of an XASession by obtaining its XAResource. It uses the * XAResource to assign the session to a transaction; prepare and commit work on the transaction; etc. * *

* An XAResource provides some fairly sophisticated facilities for interleaving work on multiple transactions; * recovering a list of transactions in progress; etc. A JTA aware JMS provider must fully implement this functionality. * This could be done by using the services of a database that supports XA or a JMS provider may choose to implement * this functionality from scratch. * *

* A client of the application server is given what it thinks is a regular JMS Session. Behind the scenes, the * application server controls the transaction management of the underlying XASession. * * @see jakarta.jms.XASession jakarta.jms.XASession * @see jakarta.jms.XATopicSession jakarta.jms.XATopicSession */ public class JMSXATopicSessionImpl extends XATopicSessionImpl implements JMSXATopicSession { public JMSXATopicSessionImpl(ConnectionImpl connection, boolean transacted, int ackMode) throws JMSException { super(connection, transacted, ackMode); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy