-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting replyto parameter does not set JMSReplyTo in delivered message #43
Comments
Seems like replyTo (and perhaps other JMS props) are not working on batch messages. |
The function transformMessage is used here. Here is a tested fix.
|
I updated the putBatchMessage + a test case that should fix the issue above, since it uses -W (Batch mode) - not write/restore dump. I don't know about DumpWriter. Perhaps in dump reader instead? Got to give some rework to that feature |
version :
Latest
JVM version (
java -version
):openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
OS version (
uname -a
if on a Unix-like system):Linux segotl2618 3.10.0-957.21.3.el7.x86_64 #1 SMP Fri Jun 14 02:54:29 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
I am sending a batch of messages.
In documentation, -r should set the JMSMessage replyTo attribute in the outgoing messages. But it doesn't. It is always null when entering the queue. The class MessageDump that is used for copying one object to a JMSMessage does not have a member for replyTo.
(Another thing is that using --reply-to instead of -r will not work at all)
Steps to reproduce:
-p "PLACEHOLDER" -S "msg.body=msg.body.replace('PLACEHOLDER',entry);" -W ./m.txt
--correlation-id anyID42 -r DEVICE.NOTIFY.RESPONSE
The text was updated successfully, but these errors were encountered: