catch message

Modeling asynchonous catch message with timeout

Connect process in differents engines by AMQ queue

Hi! I'm trying to connect a receive message event with a amq queue. I need connect two process in differents bonita engines.
To do that, I make a external java listener program to my queue. When I receive a message, in that queue, I process it and use the api java to sendMessage with correlation to my reveice message event .

My question is: Do exists another way to do this using message queues?
I tried to define a connector with the behavour of my external java program, and configure in a pool. But I have had running issues. I am not sure if this is ok.