[
https://jira.jboss.org/jira/browse/JBESB-2257?page=com.atlassian.jira.plu...
]
Daniel Bevenius closed JBESB-2257.
----------------------------------
Resolution: Done
Committed to main trunk with revision 24519.
host, port, username, password can now be specified in jboss-esb.xml or they can be
specified as properties of the ESB message object that is being sent. If the properties
were not specified in either of those locations we will default to reading the properties
from jbossesb-properties.xml.
The same goes for from, sendTo, copyTo, subject, and msgAttachmentName.
Make org.jboss.soa.esb.helpers.Email more flexible.
---------------------------------------------------
Key: JBESB-2257
URL:
https://jira.jboss.org/jira/browse/JBESB-2257
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Rosetta, Transports
Reporter: Daniel Bevenius
Assignee: Daniel Bevenius
Fix For: 4.5
I noticed that an issue here is the Email class which has an initMailServerSession which
reads properties from jbossesb-properties.xml. This makes it impossible to specify the
smtp host, port, username and password by overriding NotifyEmail.
A simple fix could be to two constructor to Email for this purpose, one that that takes
host and port and one that also accepts SMTP Authentication parameters.
This way users would be able for example override NotifyEmails sendNotification and first
query the database for the connection properties and then call the appropriate constructor
as the following user forum thread requires:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199103#...
We should also take a closer look at this class and see if there are any other improvment
that can be make. Perhaps we should add an action in addition to the email notifier, doing
this might give us more freedom and not risk any backward compability issues.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira