Hi all,
My application meet some problem about sending message to solace server.
The actual production environment suddenly appeared, each message sent to different queue or topic in the same solace server frequently appeared in this log, and the message was retried to send many a time.The printed log is “PubretransmitTimedTask — Executing timed publisher retransmission”.
Firstly, I’m not sure the solace server some queue or topic is abnormal. But regarding the connection established by my application with solace server, is there a number of resending mechanisms to control this case? Because repeated resending consumes my appliction resources, so want has a threshold to control the number of times.
The lib version is
com.solacesystems
sol-jms
10.9.0
This is configure connect with solace serve simple code logic:
ConnectionFactory connectionFactory = SolJmsUtility.createConnectionFactory(url, username, password, vpn, null);
CachingConnectionFactory cachingConnectionFactory = new CachingConnectionFactory();
cachingConnectionFactory.setTargetConnectionFactory(connectionFactory);
cachingConnectionFactory.setSessionCacheSize(100);
CachingConnectionFactory cachingConnectionFactory = (CachingConnectionFactory) context.getBean(cacheConnBeanName);
JmsTemplate jmstemplate = new JmsTemplate();
jmstemplate.setConnectionFactory(cachingConnectionFactory);
This is how a message is simple constructed to send to solace serve:
jmstemplate.send(“queueName”, session → {
TextMessage message = session.createTextMessage(body);
return message;
}
Could someone please help me in this production case?
Thanks
Gong