Thursday, January 30, 2014

Virtual Destination

Why Virtual Destination

This feature is very useful in many situations. Today, Virtual destination solved one of my problems. Here is the use case. In one of our currently application, the message processing route looks like as the following:

We need the new case looks like the following:
The new requirement asks us to put all messages which have the property of MessageType = 'SFDC Reject'. Basically, we want to know what has been rejected by SFDC system. We may retry it or send email to the interesting parties. For the moment, we don't know what exactly the process. Of course, this can be achieved through other mechanisms, such as, camel route to copy the message in the processor. But using ActiveMQ's virtual destination is the best choice.

Practical Insights

To achieve this we need to modify activemq configuration file, named, activemq.xml. Here is my changes:


        
             
                    
                           
                                   
                                       
                                       
                                   
                           
                      
             
       


Reference

http://activemq.apache.org/virtual-destinations.html

No comments:

Post a Comment

Anypoint Studio Error: The project is missing Munit lIbrary to run tests

Anypoint Studio 7.9 has a bug. Even if we following the article: https://help.mulesoft.com/s/article/The-project-is-missing-MUnit-libraries-...