Hi Rob, In our project, we use the new qpid jms client with Azure service bus. We need to use the scheduled delivery feature in service bus. I found one stackoverflow article with an example on how to do it with message annotation (https://stackoverflow.com/questions/45631740/how-to-send-scheduled-message-to-azure-service-bus-with-jms). When I tried to use the example code, it complains the ((AmqpJmsTextMessageFacade)((JmsTextMessage)textMessage).getFacade()).getAmqpMessage() line. Obviously getAmqpMessage() no longer exist in AmqpJmsTextMessageFacade class. I checked the source code of AmqpJmsMessageFacade and found there is a package private method setMessageAnnotation to set message annotations. But since it is package private method, we can't use it. I google around this issue about setting message annotation and found this old post and the issue here (https://issues.apache.org/jira/browse/QPIDJMS-153, http://qpid.2158936.n2.nabble.com/JMS-client-set-headers-message-and-delivery-annotations-td7639762.html). It looks the enhancement hasn't been not done yet. So is it only option for me now is to use reflection to call setMessageAnnotation. Is there other option here if we still want to use JMS.
Thanks, Jay -- Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
