Search in sources :

Example 1 with OTSPolicy

use of org.omg.CosTransactions.OTSPolicy in project Payara by payara.

the class TxIORInterceptor method establish_components.

// Note: this is called for all remote refs created from this ORB,
// including EJBs and COSNaming objects.
public void establish_components(IORInfo iorInfo) {
    try {
        _logger.log(Level.FINE, "TxIORInterceptor.establish_components->:");
        // Add OTS tagged components. These are always the same for all EJBs
        OTSPolicy otsPolicy = null;
        try {
            otsPolicy = (OTSPolicy) iorInfo.get_effective_policy(habitat.getService(GlassFishORBHelper.class).getOTSPolicyType());
        } catch (INV_POLICY ex) {
            _logger.log(Level.FINE, "TxIORInterceptor.establish_components: OTSPolicy not present");
        }
        addOTSComponents(iorInfo, otsPolicy);
    } catch (Exception e) {
        _logger.log(Level.WARNING, "Exception in establish_components", e);
    } finally {
        _logger.log(Level.FINE, "TxIORInterceptor.establish_components<-:");
    }
}
Also used : TAG_INV_POLICY(org.omg.CosTSInteroperation.TAG_INV_POLICY) INV_POLICY(org.omg.CORBA.INV_POLICY) OTSPolicy(org.omg.CosTransactions.OTSPolicy)

Aggregations

INV_POLICY (org.omg.CORBA.INV_POLICY)1 TAG_INV_POLICY (org.omg.CosTSInteroperation.TAG_INV_POLICY)1 OTSPolicy (org.omg.CosTransactions.OTSPolicy)1