##RabbitMQ
spring.rabbitmq.host=url
spring.rabbitmq.port=5671
spring.rabbitmq.username=user
spring.rabbitmq.password=pass
Also I am using the below connection to create ssl connection,
com.rabbitmq.client.ConnectionFactory conFactory = new com.rabbitmq.client.ConnectionFactory();
conFactory.setUsername(rabbitMqConfigModel.getUserName());
conFactory.setPassword(rabbitMqConfigModel.getPassword());
conFactory.setPort(rabbitMqConfigModel.getPort());
conFactory.setHost(rabbitMqConfigModel.getHost());
try {
conFactory.useSslProtocol();
} catch (KeyManagementException | NoSuchAlgorithmException e) {
log.error(this.getClass().getSimpleName(), "error in setting ssl protocol", e);
}
CachingConnectionFactory connectionFactory = new CachingConnectionFactory(conFactory);
But I am getting above mention IOException while try to publish through application.
If I am using 5672 in properties file I am able to publish the messages..
Please see the attachment of connection details wat ever I am using RabbitMq.
Regards,
Dinesh