If I have two VSM:
A.vsm - WebService
B.vsm - JMS
If a request comes to A, can A respond to this request but also send one to B?
Yes, less complicated.
Without understanding all the requirements, the basic activities are:
- add a JMS step (either JNDI or specific JMS provider depending on which technology you are using) after the Service A's VSI Image Selection Step
- Configure the JMS connection and publish properties in the JMS step's Base tab
- In the Send Message Data tab, specify the data you want to publish (i.e., the LISA property containing the data you want published to the queue)
The short answer is yes, you can model additional steps and actions in a VSM.
In Service A, you can add a JMS step to publish a message to a JMS queue.
If Service A will publish the inbound request to Service B, you will need to decide whether to publish the original request or use LISA's Request Object which could have been processed by Data Protocol Handlers. You also will need to make determinations about what to do if Service A is executing in Live System, Tracking or Validation modes. So, check each step's branching logic to ensure you achieve the desired behavior.
When publishing the request to Service B, you might prefer to add the publish step before the HTTP Responder step rather than after to protect against any garbage collection that might occur after the HTTP Responder step completes and the service branches to the Listen step.
On the basis of your question, it does NOT appear that you want Service A to respond with the response from Service B. Implementing this behavior is a bit more complex because Service A would publish to B's queue, listen for B's response, and respond to the caller with Service B's response. This approach involves additional considerations such as how to correlate the request & response, put the response in LISA's Response Object for the HTTP Responder, as well as Service A's performance characteristics.
Thanks for your response. Sevice A is not expecting a response from Service B, it is more of a notification, does that make the setup less complicated?
Thanks, I think this will help. I will let you know if it is successful.
Thanks again, it works.
Retrieving data ...