Search in sources :

Example 1 with ConnectionFactoryDefinition

use of org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryDefinition in project wildfly by wildfly.

the class ServerDefinition method getChildren.

@Override
protected List<? extends PersistentResourceDefinition> getChildren() {
    List<PersistentResourceDefinition> children = new ArrayList<>();
    // Static resources
    children.addAll(Arrays.asList(// HA policy
    LiveOnlyDefinition.INSTANCE, registerRuntimeOnly ? ReplicationMasterDefinition.INSTANCE : ReplicationMasterDefinition.HC_INSTANCE, registerRuntimeOnly ? ReplicationSlaveDefinition.INSTANCE : ReplicationSlaveDefinition.HC_INSTANCE, ReplicationColocatedDefinition.INSTANCE, SharedStoreMasterDefinition.INSTANCE, SharedStoreSlaveDefinition.INSTANCE, SharedStoreColocatedDefinition.INSTANCE, AddressSettingDefinition.INSTANCE, SecuritySettingDefinition.INSTANCE, // Acceptors
    HTTPAcceptorDefinition.INSTANCE, DivertDefinition.INSTANCE, ConnectorServiceDefinition.INSTANCE, GroupingHandlerDefinition.INSTANCE, // Jakarta Messaging resources
    LegacyConnectionFactoryDefinition.INSTANCE, PooledConnectionFactoryDefinition.INSTANCE));
    // Dynamic resources (depending on registerRuntimeOnly)
    // acceptors
    children.add(GenericTransportDefinition.createAcceptorDefinition(registerRuntimeOnly));
    children.add(InVMTransportDefinition.createAcceptorDefinition(registerRuntimeOnly));
    children.add(RemoteTransportDefinition.createAcceptorDefinition(registerRuntimeOnly));
    // connectors
    children.add(GenericTransportDefinition.createConnectorDefinition(registerRuntimeOnly));
    children.add(InVMTransportDefinition.createConnectorDefinition(registerRuntimeOnly));
    children.add(RemoteTransportDefinition.createConnectorDefinition(registerRuntimeOnly));
    children.add(new HTTPConnectorDefinition(registerRuntimeOnly));
    children.add(new BridgeDefinition(registerRuntimeOnly));
    children.add(new BroadcastGroupDefinition(registerRuntimeOnly));
    children.add(new SocketBroadcastGroupDefinition(registerRuntimeOnly));
    children.add(new JGroupsBroadcastGroupDefinition(registerRuntimeOnly));
    // WFLY-10518 - keep discovery-group resource under server
    children.add(new DiscoveryGroupDefinition(registerRuntimeOnly, false));
    children.add(new JGroupsDiscoveryGroupDefinition(registerRuntimeOnly, false));
    children.add(new SocketDiscoveryGroupDefinition(registerRuntimeOnly, false));
    children.add(new ClusterConnectionDefinition(registerRuntimeOnly));
    children.add(new QueueDefinition(registerRuntimeOnly, MessagingExtension.QUEUE_PATH));
    children.add(new JMSQueueDefinition(false, registerRuntimeOnly));
    children.add(new JMSTopicDefinition(false, registerRuntimeOnly));
    children.add(new ConnectionFactoryDefinition(registerRuntimeOnly));
    return children;
}
Also used : JMSTopicDefinition(org.wildfly.extension.messaging.activemq.jms.JMSTopicDefinition) JMSQueueDefinition(org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition) ArrayList(java.util.ArrayList) ConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryDefinition) PooledConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryDefinition) LegacyConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.legacy.LegacyConnectionFactoryDefinition) PersistentResourceDefinition(org.jboss.as.controller.PersistentResourceDefinition) JMSQueueDefinition(org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition)

Aggregations

ArrayList (java.util.ArrayList)1 PersistentResourceDefinition (org.jboss.as.controller.PersistentResourceDefinition)1 ConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryDefinition)1 JMSQueueDefinition (org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition)1 JMSTopicDefinition (org.wildfly.extension.messaging.activemq.jms.JMSTopicDefinition)1 PooledConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryDefinition)1 LegacyConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.legacy.LegacyConnectionFactoryDefinition)1