1 Reply Latest reply on May 30, 2011 7:05 AM by Mark Paluch

    Thread management

    Dennis Herrmann Newbie

      Hello everybody,


      does anybody have an idea, how to configure the behaviour of a quartz job and a mdb? Both must not run synchronously.


      Is there a kind of locking mechanism provided by the jboss? If yes, is there any sample code available?





        • 1. Re: Thread management
          Mark Paluch Master

          Hi Dennis,

          when I understood you right, you want to run some async processes one after the other, not concurrently. In this case you need to manage the sync by your own. There are multiple ways to achieve this: by having a Lock-Manager (local: singleton instance, remote: some sort of replicated TreeCache or Infinispan), sync via Database (bad performance). Scheduled Jobs and MDB's have nothing common that would provide a Locking-System.


          Best regards,