Env: JBoss 5.1 + HornetQ 2.2.14.Final
I have a long-running process that I was trying to run from my messagelistener onMessage method. I'm getting a timeout error before it completes the process, which is a rather slow process. The original idea was to do a basic validation of data entered, then put a message in the queue to be processed asyncronously (without the user waiting). Assuming this is a timeout issue - how can I increase this timeout?
Errors/stack:
17:40:25,266 WARNING [ClientConsumerImpl] Executor couldn't finish its operation before timeout : org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor@18e5cef7
17:40:25,268 WARNING [ClientConsumerImpl] Timed out waiting for handler to complete processing
java.lang.Exception: trace
at org.hornetq.core.client.impl.ClientConsumerImpl.waitForOnMessageToComplete(ClientConsumerImpl.java:914)
at org.hornetq.core.client.impl.ClientConsumerImpl.doCleanUp(ClientConsumerImpl.java:1063)
at org.hornetq.core.client.impl.ClientConsumerImpl.close(ClientConsumerImpl.java:451)
at org.hornetq.jms.client.HornetQMessageConsumer.close(HornetQMessageConsumer.java:145)
at org.hornetq.jms.client.HornetQSession.close(HornetQSession.java:271)
at com.example.ProducerImpl.doSend(ProducerImpl.java:89)
I noticed that line 89 above corresponds to:
queueSession.close();
Maybe I'm not supposed to close the queue session yet? But this is the PRODUCER, I thought once the message was produced, someone else would handle checking the queue and processing the message?