简体   繁体   中英

how to send response to a sender from ESB before adding message to a jms queue

I have a requirement, where I am getting requests from ESB api and using ESB sequencing through restfull tomcat endpoints I am validating the request and then sending it to the JMS queue,

This is working fine but i also want to send the response to the sender, if the validation fails in restfull tomcat endpoint. Since the validation fails the message does not get delivered to the queue and gets dropped there.

Request Flow,

Sender -> 
    ESB API -> 
        ESB sequence -> 
               tomcat validation endpoint -> 
                                    ESB sequence -> 
                                            AddressEndpoint for JMS queue.

Here, at "tomcat validation endpoint ->" if the validation is success the flow should continue to "AddressEndpoint for JMS queue." at the same time it should acknowledge the sender that the message was success.

Is it possible?

Please suggest, the sender presently does not get notified if the message reached the queue or got dropped at tomcat endpoint in the esb sequence.

当您从tomcat验证端点收到响应时,将执行outSequence或faultSequence,具体取决于端点是否可访问等。在这些序列中,您可以根据需要克隆响应,并在一个目标中将消息发送到JMS队列。另一方面,您将响应发送给呼叫者

就像让·米歇尔(Jean-Michel)所说的,您可以使用克隆介体,并使用RESPONDSEND介体将消息的副本发送到JMS,将另一个副本发送给调用方。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM