[
http://jira.jboss.com/jira/browse/JBESB-452?page=comments#action_12367510 ]
Daniel Bevenius commented on JBESB-452:
---------------------------------------
Additional work for JIRA: JBESB-452 "Refactor Notifiers":
NotifySqlTable SqlException is now being caught,logged and a
NotificationException is throw with the sql exception as cause
NotifySqlTableUnitTest Unit test for testing the exception handling
NotifyFilesTest methods stringNotification and objectNotification now
throw IOException. sendNotifcation catches IOException and
for every failure of notifying a file a error
message containing the filename and stacktrace is saved, and later
thrown with a NotifcationException.
NotifyFilesUnitTest Unit test for testing the exception handling
NotifyJMS Moved createException to NotifyUtil so the other
notification classes can use it.
NotifyTopicsUnitTest updated to reflect the move of createException mentioned
above.
Committed revision 13031.
NotifyConsole, NotfiyEmail,and NotifyFtp look ok to me in that they are catching and
rethrowing exceptions.
Refactor Notifiers
------------------
Key: JBESB-452
URL:
http://jira.jboss.com/jira/browse/JBESB-452
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.0
Environment: any
Reporter: Kurt Stam
Assigned To: Daniel Bevenius
Priority: Critical
Fix For: 4.2
Time Spent: 4 hours
Remaining Estimate: 0 minutes
These comments are based on the JMS notifiers but will probably apply to the other
notifiers as well:
1. The notifiers should be more like listeners where you get one (or more instances).
Until they get recycled when there is a config change. Right now the JMS onces
connected and disconnect with every message, which causes stress on the JMS provider when
running in high load mode.
2. They should get their 'provider' configuration from the configuration, just
like the listeners. Right now you cannot connect to other JMS providers.
3. The notifiers should get hooked up to the same life cycle management as the listener
infrastructure.
In other words: They really should be 'inverse gateways', the model is broken and
there shouldn't be a distinction between notifying and sending a message via
couriers+listeners. The fact we support different transports (and in different ways) for
notifiers than for the "core" ESB is just wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira