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); }
/** * A validate method. Don't extending for the moment ValidatableMetadata * * @return true if Ra is valid, flase in the other cases */ public boolean validationAsBoolean() { if (this.getConnectionDefinitions() == null || this.getConnectionDefinitions().size() == 0) return false; ConnectionDefinition cdm = this.getConnectionDefinitions().get(0); if (cdm.getManagedConnectionFactoryClass() == null || cdm.getConnectionFactoryInterface() == null || cdm.getConnectionFactoryImplClass() == null || cdm.getConnectionInterface() == null || cdm.getConnectionImplClass() == null) return false; return true; }
private void mergeTransactionSupport(Activation ij, Connector conn) { if (ij.getTransactionSupport() != null) { if (conn.getResourceadapter() != null) { ResourceAdapter ra = conn.getResourceadapter(); if (ra.getOutboundResourceadapter() != null) { ((OutboundResourceAdapterImpl) ra.getOutboundResourceadapter()). forceTransactionSupport(ij.getTransactionSupport()); } } } }
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,