Skip to content
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

Consuming Message Properties #22

Open
teresamychu opened this issue Aug 10, 2017 · 2 comments
Open

Consuming Message Properties #22

teresamychu opened this issue Aug 10, 2017 · 2 comments

Comments

@teresamychu
Copy link

Hi there,

I am trying to see if there is a way to access the message properties when consuming a message from the queue. I've dug into the source code a bit and it looks like only the message body is accessible from the receiver.

Is there something I am missing? Let me know and thank you so much!

Cheers,
Teresa

@mbknor
Copy link
Owner

mbknor commented Aug 11, 2017

Hi, I do not think it is currently possible.

It would be great if you could look into it and supply a PullRequest.

-Morten

@mbknor
Copy link
Owner

mbknor commented Aug 11, 2017

After a quick look at the code, one idea to solve it would be to do something like this (using ThreadLocal):

ActiveMQBundle.correlationID.set(message.getJMSCorrelationID());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants