/** * Publish message using RabbitMQ * @param content of the message * @param routing key */ public boolean publish(Object content, String routing) { if (rabbitMQ != null) { return rabbitMQ.publish(content, routing); } else { DispatchLogger.log("RabbitMQ is not properly configured, therefore it is not possible to publish any messages. Please consult logs and double check configuration files"); return false; } }
/** * Publish message using RabbitMQ * @param content of the message * @param routing key */ public static boolean publish(Object content, String routing) { RabbitMQPublisher rabbitMQ = RabbitMQPublisher.getInstance(); if (rabbitMQ != null) { return rabbitMQ.publish(content, routing); } else { DispatchLogger.log("RabbitMQ is not properly configured, therefore it is not possible to publish any messages. Please consult logs and double check configuration files"); return false; } }
/** * Publish message using RabbitMQ * @param content of the message * @param routing key */ public static boolean publish(Object content, String routing) { RabbitMQPublisher rabbitMQ = RabbitMQPublisher.getInstance(); if (rabbitMQ != null) { return rabbitMQ.publish(content, routing); } else { DispatchLogger.log("RabbitMQ is not properly configured, therefore it is not possible to publish any messages. Please consult logs and double check configuration files"); return false; } }
/** * Publish message using RabbitMQ * @param content of the message * @param routing key */ public static boolean publish(Object content, String routing) { RabbitMQPublisher rabbitMQ = RabbitMQPublisher.getInstance(); if (rabbitMQ != null) { return rabbitMQ.publish(content, routing); } else { DispatchLogger.log("RabbitMQ is not properly configured, therefore it is not possible to publish any messages. Please consult logs and double check configuration files"); return false; } }