[esb-issues] [JBoss JIRA] Created: (JBESB-2257) Make org.jboss.soa.esb.helpers.Email for flexible.

Daniel Bevenius (JIRA) jira-events at lists.jboss.org
Thu Jan 1 07:56:54 EST 2009


Make org.jboss.soa.esb.helpers.Email for 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#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

        



More information about the esb-issues mailing list