]
Mark Little commented on JBESB-2257:
------------------------------------
BTW a change that discourages the use of notifications would be preferred :-)
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
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: