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

JMSXUserID handling may not work when sending a received message #347

Open
glassfishrobot opened this issue Dec 13, 2013 · 3 comments
Open

Comments

@glassfishrobot
Copy link

The class ProtocolHandler contains the following code to set the JMSXAppID and/or JMSXUserID properties if the client is configured to set them:

//set JMSXAppID if requested if (setJMSXAppID) {
            message.setStringProperty(ConnectionMetaDataImpl.JMSXAppID,
      jmsxAppID);
}

//set JMSXUserID if requested if (setJMSXUserID) {
   message.setStringProperty(ConnectionMetaDataImpl.JMSXUserID,
      jmsxUserID);
}

However if the message being sent was previously received then it appears (from looking at the code) the message properties will be in read-only mode and setStringProperty will throw a MessageNotWriteableException.

Affected Versions

[5.1 (RI-Bug-Fix)]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @nigeldeakin

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA MQ-347

@glassfishrobot
Copy link
Author

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