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

org.jboss.iiop.tm.InboundTransactionCurrent Maven / Gradle / Ivy

/*
 *
 * Copyright The Narayana Authors
 * 
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 */
package org.jboss.iiop.tm;

import jakarta.transaction.Transaction;

import org.omg.CORBA.Current;

/**
 * Interface to be implemented by a CORBA OTS provider for integration with
 * JBossAS. The CORBA OTS provider must (i) create an object that implements
 * this interface and (ii) register an initial reference for that object
 * with the JBossAS ORB, under name "InboundTransactionCurrent".
 * 

* Step (ii) above should be done by a call * orbInitInfo.register_initial_reference within the * pre_init method of an * org.omg.PortableInterceptor.ORBInitializer, * which will probably be also the initializer that registers a server request * interceptor for the OTS provider. * */ public interface InboundTransactionCurrent extends Current { String NAME = "InboundTransactionCurrent"; /** * Gets the Transaction instance associated with the current incoming * request. This method should be called only by code that handles incoming * requests; its return value is undefined in the case of a call issued * outside of a request scope. * * @return the jakarta.transaction.Transaction instance associated with the * current incoming request, or null if that request was not issued * within the scope of some transaction. */ Transaction getCurrentTransaction(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy