Search in sources :

Example 1 with ConnectionFactory

use of org.wildfly.swarm.config.messaging.activemq.server.ConnectionFactory in project wildfly-swarm by wildfly-swarm.

the class EnhancedServer method enableInVm.

public EnhancedServer enableInVm() {
    int serverId = COUNTER.getAndIncrement();
    inVmConnector(IN_VM, (c) -> c.serverId(serverId));
    inVmAcceptor(IN_VM, (a) -> a.serverId(serverId));
    connectionFactory(new ConnectionFactory("InVmConnectionFactory").connector(IN_VM).entry("java:/ConnectionFactory"));
    pooledConnectionFactory(new PooledConnectionFactory("activemq-ra").entry("java:jboss/DefaultJMSConnectionFactory").entry("java:/JmsXA").connector(IN_VM).transaction("xa"));
    return this;
}
Also used : PooledConnectionFactory(org.wildfly.swarm.config.messaging.activemq.server.PooledConnectionFactory) ConnectionFactory(org.wildfly.swarm.config.messaging.activemq.server.ConnectionFactory) PooledConnectionFactory(org.wildfly.swarm.config.messaging.activemq.server.PooledConnectionFactory)

Aggregations

ConnectionFactory (org.wildfly.swarm.config.messaging.activemq.server.ConnectionFactory)1 PooledConnectionFactory (org.wildfly.swarm.config.messaging.activemq.server.PooledConnectionFactory)1