public static int getTransactionSupportFromRaXml(String rarName) throws ConnectorRuntimeException { String txSupport = ConnectorRuntime.getRuntime().getConnectorDescriptor(rarName). getOutboundResourceAdapter().getTransSupport(); return parseTransactionSupportString(txSupport); } }
+ this.outboundRA.getTransSupport());
+ this.outboundRA.getTransSupport());
/** * provides the transaction support for the pool. * If none specified in the pool, tx support at RA level will be returned. * @param pool connector connection pool * @return tx support level */ private String getTransactionSupport(ConnectorConnectionPool pool) { String txSupport = pool.getTransactionSupport(); if (txSupport != null) { return txSupport; } try { txSupport = ConnectorRuntime.getRuntime().getConnectorDescriptor( pool.getResourceAdapterName()).getOutboundResourceAdapter(). getTransSupport(); } catch (ConnectorRuntimeException cre) { Object params[] = new Object[]{pool.getResourceAdapterName(), cre}; _logger.log(Level.WARNING, "error.retrieving.tx-support.from.rar", params); if(_logger.isLoggable(Level.FINEST)) { _logger.finest("setting no-tx-support as tx-support-level for pool : " + pool.getName()); } txSupport = ConnectorConstants.NO_TRANSACTION_TX_SUPPORT_STRING; } return txSupport; }
/** * method to add the child nodes of RESOURCE_ADAPTER and OUTBOUND_RESOURCE_ADAPTER */ private void append (Node raNode, OutboundResourceAdapter conDesc) { ConnectionDefNode conDef = new ConnectionDefNode(); raNode = conDef.writeDescriptor(raNode, conDesc); appendTextChild(raNode, ConnectorTagNames.TRANSACTION_SUPPORT, conDesc.getTransSupport()); AuthMechNode auth = new AuthMechNode(); raNode = auth.writeDescriptor(raNode, conDesc); appendTextChild(raNode, ConnectorTagNames.REAUTHENTICATION_SUPPORT, conDesc.getReauthenticationSupport()); } }
/** * method to add the child nodes of RESOURCE_ADAPTER and OUTBOUND_RESOURCE_ADAPTER */ private void append (Node raNode, OutboundResourceAdapter conDesc) { ConnectionDefNode conDef = new ConnectionDefNode(); raNode = conDef.writeDescriptor(raNode, conDesc); appendTextChild(raNode, ConnectorTagNames.TRANSACTION_SUPPORT, conDesc.getTransSupport()); AuthMechNode auth = new AuthMechNode(); raNode = auth.writeDescriptor(raNode, conDesc); appendTextChild(raNode, ConnectorTagNames.REAUTHENTICATION_SUPPORT, conDesc.getReauthenticationSupport()); } }