
com.versioneye.service.RabbitMqService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-indexer Show documentation
Show all versions of maven-indexer Show documentation
The maven-indexer project is used by VersionEye to download, read and iterate
Maven indexes from Maven repository servers. This project is part of the
VersionEye crawling framework.
package com.versioneye.service;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
public class RabbitMqService {
public static Connection getConnection(String host, int port) throws Exception{
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(host);
factory.setPort(port);
return factory.newConnection();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy