private static OutboundResourceAdapter createOutbound(List<ConfigProperty> outboundProperties) { List<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition> definitions = new ArrayList(); List<ConfigProperty> props = new ArrayList(outboundProperties); props.add(simpleProperty15(SESSION_DEFAULT_TYPE, STRING_TYPE, JMS_QUEUE)); props.add(simpleProperty15(TRY_LOCK, INTEGER_TYPE, "0")); definitions.add(new org.jboss.jca.common.metadata.spec.ConnectionDefinitionImpl(str(RAMANAGED_CONN_FACTORY), props, str(RA_CONN_FACTORY), str(RA_CONN_FACTORY_IMPL), str(JMS_SESSION), str(ACTIVEMQ_RA_SESSION), null)); AuthenticationMechanism basicPassword = new AuthenticationMechanismImpl(Collections.<LocalizedXsdString>emptyList(), str(BASIC_PASS), CredentialInterfaceEnum.PasswordCredential, null, null); return new OutboundResourceAdapterImpl(definitions, TransactionSupportEnum.XATransaction, Collections.singletonList(basicPassword), false, null, null, null); }
private static OutboundResourceAdapter createOutbound(List<ConfigProperty> outboundProperties) { List<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition> definitions = new ArrayList(); List<ConfigProperty> props = new ArrayList(outboundProperties); props.add(simpleProperty15(SESSION_DEFAULT_TYPE, STRING_TYPE, JMS_QUEUE)); props.add(simpleProperty15(TRY_LOCK, INTEGER_TYPE, "0")); definitions.add(new org.jboss.jca.common.metadata.spec.ConnectionDefinitionImpl(str(RAMANAGED_CONN_FACTORY), props, str(RA_CONN_FACTORY), str(RA_CONN_FACTORY_IMPL), str(JMS_SESSION), str(ACTIVEMQ_RA_SESSION), null)); AuthenticationMechanism basicPassword = new AuthenticationMechanismImpl(Collections.<LocalizedXsdString>emptyList(), str(BASIC_PASS), CredentialInterfaceEnum.PasswordCredential, null, null); return new OutboundResourceAdapterImpl(definitions, TransactionSupportEnum.XATransaction, Collections.singletonList(basicPassword), false, null, null, null); }
private static OutboundResourceAdapter createOutbound(List<ConfigProperty> outboundProperties) { List<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition> definitions = new ArrayList<>(); List<ConfigProperty> props = new ArrayList<>(outboundProperties); props.add(simpleProperty15(SESSION_DEFAULT_TYPE, STRING_TYPE, JMS_QUEUE)); props.add(simpleProperty15(TRY_LOCK, INTEGER_TYPE, "0")); definitions.add(new org.jboss.jca.common.metadata.spec.ConnectionDefinitionImpl(str(RAMANAGED_CONN_FACTORY), props, str(RA_CONN_FACTORY), str(RA_CONN_FACTORY_IMPL), str(JMS_SESSION), str(ACTIVEMQ_RA_SESSION), null)); AuthenticationMechanism basicPassword = new AuthenticationMechanismImpl(Collections.<LocalizedXsdString>emptyList(), str(BASIC_PASS), CredentialInterfaceEnum.PasswordCredential, null, null); return new OutboundResourceAdapterImpl(definitions, TransactionSupportEnum.XATransaction, Collections.singletonList(basicPassword), false, null, null, null); }
private static OutboundResourceAdapter createOutbound(List<ConfigProperty> outboundProperties) { List<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition> definitions = new ArrayList<>(); List<ConfigProperty> props = new ArrayList<>(outboundProperties); props.add(simpleProperty15(SESSION_DEFAULT_TYPE, STRING_TYPE, JMS_QUEUE)); props.add(simpleProperty15(TRY_LOCK, INTEGER_TYPE, "0")); definitions.add(new org.jboss.jca.common.metadata.spec.ConnectionDefinitionImpl(str(RAMANAGED_CONN_FACTORY), props, str(RA_CONN_FACTORY), str(RA_CONN_FACTORY_IMPL), str(JMS_SESSION), str(ACTIVEMQ_RA_SESSION), null)); AuthenticationMechanism basicPassword = new AuthenticationMechanismImpl(Collections.<LocalizedXsdString>emptyList(), str(BASIC_PASS), CredentialInterfaceEnum.PasswordCredential, null, null); return new OutboundResourceAdapterImpl(definitions, TransactionSupportEnum.XATransaction, Collections.singletonList(basicPassword), false, null, null, null); }
List<AuthenticationMechanism> newAuthenticationMechanism = MergeUtil.mergeList(this.authenticationMechanism, input.authenticationMechanism); return new OutboundResourceAdapterImpl(newConnDef, newTransactionSupport, newAuthenticationMechanism, newReauthenticationSupport, newId, newTransactionSupportId, newReauthenticationSupportId);
return new OutboundResourceAdapterImpl(connectionDefinition, transactionSupport, authenticationMechanism, reauthenticationSupport, id, tsId, rsId);
/** * {@inheritDoc} */ public CopyableMetaData copy() { return new OutboundResourceAdapterImpl(CopyUtil.cloneList(connectionDefinition), transactionSupport, CopyUtil.cloneList(authenticationMechanism), reauthenticationSupport, CopyUtil.cloneString(id), CopyUtil.cloneString(transactionSupportId), CopyUtil.cloneString(reauthenticationSupportId)); }
cds.add(cd); OutboundResourceAdapter ora = new OutboundResourceAdapterImpl(cds, transactionSupport, authenticationMechanism,
cds.add(cd); OutboundResourceAdapter ora = new OutboundResourceAdapterImpl(cds, transactionSupport, authenticationMechanism, connectionImplClass, id); connectionDefinitions.add(connectionDefinition); OutboundResourceAdapter outboundResourceadapter = new OutboundResourceAdapterImpl(connectionDefinitions, transactionSupport, authenticationMechanism,
authenticationMechanisms = processAuthenticationMechanism(conAnnotation.authMechanisms()); OutboundResourceAdapter outboundResourceadapter = new OutboundResourceAdapterImpl(connectionDefinitions, transactionSupport, authenticationMechanisms,