I am attempting to use an MDB (onMessage) to run a long running JDBC sql query and export the output to disk.
I am running into timeouts with the onMessage because the acknowledge takes place after the successful completion of the onMessage. Ideally I would like to immediately acknowledge the message as the handling of the work (JDBC query export) has its own retry/error handling built in.
Is there an approach with MDB onMessage that will allow for this immediate acknowledgement or some better way of handling the async run of a long running process within the Java EE space.