Concurrent access to a @Lock(LockType.WRITE) method
问题 What am i trying to accomplish: I have a JMS queue and I want to asynchronously get elements from that queue and send to a Printer. This printer is very specific and dumb so it can't queue on it's on or buffer anything at all. I must perform 5 steps in sequence on this printer and the steps of a queued elemet must not overlap the steps of another element. For each step the printer will return 1 on success and another number on failure. The current implementation is an MDB with an onMessage