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<-:");
}
}
Aggregations