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;
}
Aggregations