The easy answer is to pass the whole document on the JMS queue to your application, and have it return the whole thing. But the easy answer for the integration side may not be easy for your application, plus it might mean performance problems.
It may be better to set up a seperate storage area for your original document. Put it in a database if you have one available, write it to a file, whatever makes sense in your environment. Then you can re-read the original data in your second integration. You can pass a key in your JMS message that lets you get the original document back, or perhaps there’s a code on the JMS message that will serve that purpose already (like a trackId on a webMethods document).
None of this is the ideal solution, so if someone else has a better idea on how to avoid the issue of JMS request/reply, please jump in. But this should work, despite being horribly inelegant.
#webMethods#Integration-Server-and-ESB#webMethods-General