Hi Team,
I am connecting to queue on azure service bus using jmsConnectionFactory in Spring.
Creating connectionFactory as follows :
jmsConnectionFactory.setUsername(<username>);
jmsConnectionFactory.setPassword(<password>);
jmsConnectionFactory.setRemoteURI("amqps://<servicebusName>.servicebus.windows.net?amqp.idleTimeout=120000");
Configuring defaultMessageListener :
@Bean
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory() {
DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
factory.setConcurrency("1-1");
return factory;
}
And have written receiver as
@Component
public class MessageReceiver {
private static final String ORDER_RESPONSE_QUEUE = "deviceque1";
@Autowired
MessagingService messagingService;
@JmsListener(destination = ORDER_RESPONSE_QUEUE)
public void receiveMessage(final Message message) throws JMSException {.processing messages.}
}
And I am using apache qpid maven dependencies, EventProcessor for eventhubs where in the onEvents() listener method sending messages to the que
I am getting the error as
Setup of JMS message listener invoker failed for destination 'deviceque1' - trying to recover. Cause: Remote did not respond to a drain request in time
Can you please help in sorting out this issue
Thanks in Advance