]
Mark Little closed JBESB-1166.
------------------------------
Resolution: Won't Fix
All of this should be fixed in ESB 5.
ESB Message Property setter/getter shortcut
-------------------------------------------
Key: JBESB-1166
URL:
https://jira.jboss.org/jira/browse/JBESB-1166
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.2
Reporter: Burr Sutter
Assignee: Mark Little
I have noticed that in my code I have a lot of this kind of usage for the properties on
the esb message object:
esbMessage.getProperties().setProperty("MAIL_SUBJECT",subject);
esbMessage.getProperties().setProperty("MAIL_MESSAGE_NUMBER",mailMessage.getMessageNumber());
esbMessage.getProperties().setProperty("MAIL_SENT_DATE",mailMessage.getSentDate());
I propose we create "shortcut" methods on the Message class itself like so:
esbMessage.setProperty("MAIL_SUBJECT",subject);
esbMessage.setProperty("MAIL_MESSAGE_NUMBER",mailMessage.getMessageNumber());
esbMessage.setProperty("MAIL_SENT_DATE",mailMessage.getSentDate());
The use of the word "property" in the setter/getter should make it obvious what
part of the message it is going into. We should also consider the same for header,
attachment, etc.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: