All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.versioneye.service.RabbitMqService Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.5
Show newest version
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