What is the use case you have in mind? Something like: if the action hasn't completed after 30 seconds send a fault message back to the client?
I have a chain of services that the messages are routed through. The problem I'm facing, is that I when I send a 100 messages as an input, I get more messages on the output (the ouput is not consistent even though I always send the same 100 messages during my testing).
This started happening after I added a service with several (time consuming) database queries and this makes me think that something is timing out and the messages are being resent.
I use either static or content-based routers to send messages between services.
After doing some research, I found that the routers use the MessageMulticaster to send messages which in turn uses the ServiceInvoker with deliverAsync method. So it looks like there is no timeout settings in my situation.
I'm guessing that some messages are being send to the DLQ and then redelivered. But why? I have the FaultToEPR set using LogicalEPR, so if there is a problem shouldn't they be sent there?
What happens if a message is being sent to the FaultTo EPR and there is a problem at that point?
Thank you for any enlightenment
Are you getting any warnings/errors or debug statements from the ESB?
I'm logging some information but I don't see any errors/warnings.
I just ran my test twice after restarting JBoss completely and it seems to be ok now. I wonder if it was a problem with registry and it clear up after the restart.
I'll post another massage as soon as I see it happen again and any errors/logs. (hopefully not)