2 Replies Latest reply on Feb 18, 2006 4:36 AM by Koen Aers

    asyn feature configuration

    edgar poce Newbie


      The SendMessagesInterceptor uses the interfaces MessageServiceFactory and MessageService to send messages. This is to make the asynchronous messaging implementation configurable (also in jbpm.cfg.xml).

      I'm trying to use the new async feature and I'm stucked :(. the queue of messages grow but I don't see any thread consuming them. I'm surely missing a configuration setting to make it work. I don't see any reference to SendMessagesInterceptor in my config gile, how can I configure the interceptor?

      thanks in advance,

        • 1. Re: asyn feature configuration
          edgar poce Newbie


          well, I think I'm a little closer :).

          It seems it's up to the client to handle the async stuff, either by starting the CommandExecutorThread (e.g. by running the jbpm webapp, or inside a custom app), or by subscribing a MessageListener to the message queue, in case one choses to use org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.

          I haven't found the JMS counterpart of CommandExecutorThread, is there any MessageListener?, in case I have to implement it, I should do the same CommandExecutorThread stuff plus the JMS handling, right?.

          Am I in the right direction? any help is highly appreciated


          • 2. Re: asyn feature configuration
            Koen Aers Master


            There is not (yet) any JMS counterpart of the CommandExecutorThread. In fact if you use JMS, you should not have any separate CommandExecutorThread. MDB's have been invented to do this job... But again, you should create this MDB yourself, we do not provide one at this time.