Search in sources :

Example 1 with InboundResourceAdapterImpl

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

the class PooledConnectionFactoryService method createInbound.

private InboundResourceAdapter createInbound(List<ConfigProperty> inboundProps) {
    List<RequiredConfigProperty> destination = Collections.<RequiredConfigProperty>singletonList(new RequiredConfigPropertyImpl(EMPTY_LOCL, str("destination"), null));
    Activationspec activation15 = new ActivationSpecImpl(str(ACTIVEMQ_ACTIVATION), destination, inboundProps, null);
    List<MessageListener> messageListeners = Collections.<MessageListener>singletonList(new MessageListenerImpl(str(JMS_MESSAGE_LISTENER), activation15, null));
    Messageadapter message = new MessageAdapterImpl(messageListeners, null);
    return new InboundResourceAdapterImpl(message, null);
}
Also used : InboundResourceAdapterImpl(org.jboss.jca.common.metadata.spec.InboundResourceAdapterImpl) RequiredConfigPropertyImpl(org.jboss.jca.common.metadata.spec.RequiredConfigPropertyImpl) Activationspec(org.jboss.jca.common.api.metadata.spec.Activationspec) MessageAdapterImpl(org.jboss.jca.common.metadata.spec.MessageAdapterImpl) ActivationSpecImpl(org.jboss.jca.common.metadata.spec.ActivationSpecImpl) MessageListener(org.jboss.jca.common.api.metadata.spec.MessageListener) Messageadapter(org.jboss.jca.common.api.metadata.spec.Messageadapter) MessageListenerImpl(org.jboss.jca.common.metadata.spec.MessageListenerImpl) RequiredConfigProperty(org.jboss.jca.common.api.metadata.spec.RequiredConfigProperty)

Aggregations

Activationspec (org.jboss.jca.common.api.metadata.spec.Activationspec)1 MessageListener (org.jboss.jca.common.api.metadata.spec.MessageListener)1 Messageadapter (org.jboss.jca.common.api.metadata.spec.Messageadapter)1 RequiredConfigProperty (org.jboss.jca.common.api.metadata.spec.RequiredConfigProperty)1 ActivationSpecImpl (org.jboss.jca.common.metadata.spec.ActivationSpecImpl)1 InboundResourceAdapterImpl (org.jboss.jca.common.metadata.spec.InboundResourceAdapterImpl)1 MessageAdapterImpl (org.jboss.jca.common.metadata.spec.MessageAdapterImpl)1 MessageListenerImpl (org.jboss.jca.common.metadata.spec.MessageListenerImpl)1 RequiredConfigPropertyImpl (org.jboss.jca.common.metadata.spec.RequiredConfigPropertyImpl)1