Search in sources :

Example 1 with AuthenticationMechanism

use of org.jboss.jca.common.api.metadata.spec.AuthenticationMechanism in project wildfly by wildfly.

the class PooledConnectionFactoryService method createOutbound.

private static OutboundResourceAdapter createOutbound() {
    List<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition> definitions = new ArrayList<org.jboss.jca.common.api.metadata.spec.ConnectionDefinition>();
    List<ConfigProperty> props = new ArrayList<ConfigProperty>();
    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);
}
Also used : ConnectionDefinition(org.jboss.jca.common.api.metadata.resourceadapter.ConnectionDefinition) AuthenticationMechanism(org.jboss.jca.common.api.metadata.spec.AuthenticationMechanism) ArrayList(java.util.ArrayList) Activationspec(org.jboss.jca.common.api.metadata.spec.Activationspec) AuthenticationMechanismImpl(org.jboss.jca.common.metadata.spec.AuthenticationMechanismImpl) ConfigProperty(org.jboss.jca.common.api.metadata.spec.ConfigProperty) RequiredConfigProperty(org.jboss.jca.common.api.metadata.spec.RequiredConfigProperty) OutboundResourceAdapterImpl(org.jboss.jca.common.metadata.spec.OutboundResourceAdapterImpl)

Aggregations

ArrayList (java.util.ArrayList)1 ConnectionDefinition (org.jboss.jca.common.api.metadata.resourceadapter.ConnectionDefinition)1 Activationspec (org.jboss.jca.common.api.metadata.spec.Activationspec)1 AuthenticationMechanism (org.jboss.jca.common.api.metadata.spec.AuthenticationMechanism)1 ConfigProperty (org.jboss.jca.common.api.metadata.spec.ConfigProperty)1 RequiredConfigProperty (org.jboss.jca.common.api.metadata.spec.RequiredConfigProperty)1 AuthenticationMechanismImpl (org.jboss.jca.common.metadata.spec.AuthenticationMechanismImpl)1 OutboundResourceAdapterImpl (org.jboss.jca.common.metadata.spec.OutboundResourceAdapterImpl)1