|
Email Answering System Version 1.0 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
EmailDispatcher | Message driven bean reads from a queue and dispatches to topics based on subject. |
EmailResponder | Reply to original email sender with contents of a jms message. |
The master beans package.
These two classes provide the fan-out and fan-in for other message driven slave beans. The dispatcher reads from the Inbox queue and determines which slave bean should get the message. The responder reads from the Outbox queue and sends these email messages to the connector.
I had considered using the JMS selector functionality to do the dispatch task, but there was no means of providing a default. That is, there was no mechanism to specify 'all messages not handled by any of the other selectors'.
It also responds to meta messages. The only one currently is 'help', but I envisage other 'management' and 'monitoring' functionality that is not specific to one particular slave.
The responder is fairly straight-forward, being injected in the return path simply so that each robot bean did not need to have knowledge of the connector and thus include the connector client classes.
|
Email Answering System Version 1.0 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |