2017-04-13 15:56:55 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 univento.eu - All rights reserved
|
|
|
|
* You are not allowed to use, distribute or modify this code
|
|
|
|
*/
|
|
|
|
|
|
|
|
package eu.univento.commons.messaging;
|
|
|
|
|
|
|
|
import eu.univento.commons.Commons;
|
|
|
|
import eu.univento.commons.configuration.ConfigurationHandler;
|
|
|
|
import lombok.Getter;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author joethei
|
2017-04-14 11:02:35 +02:00
|
|
|
* @version 1.0
|
2017-04-13 15:56:55 +02:00
|
|
|
*/
|
|
|
|
public class MessagingManager {
|
|
|
|
|
|
|
|
@Getter
|
|
|
|
private RabbitMQ rabbitMQ;
|
|
|
|
|
|
|
|
public MessagingManager() {
|
|
|
|
ConfigurationHandler config = Commons.getCommons().getConfigurationHandler();
|
|
|
|
rabbitMQ = new RabbitMQ(config.getString("RabbitMQ.Host"), config.getInteger("RabbitMQ.Port"),
|
|
|
|
config.getString("RabbitMQ.Username"), config.getString("RabbitMQ.Password"), config.getString("RabbitMQ.VirtualHost"));
|
|
|
|
}
|
|
|
|
}
|