Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.3. CHECK PENDING MESSAGES THREAD 19<br />
Figure 4.4: Receive Message Sequence Diagram<br />
4.3 Check Pending Messages Thread<br />
4.3.1 Check Pending Messages Data Flow<br />
The Check Pending Messages thread will be created by the data manager. It will be set asleep<br />
for a configurable period of time. When it starts, it sends a query to the SQL7 database that<br />
queries for messages with errors and messages for which now acknowledgement messages have<br />
been received within a configurable amount of time.<br />
These messages will be stored into a error message list out of which an email notification message<br />
will be generated and send to a configurable email address.<br />
4.3.2 Check Pending Messages Thread Sequence<br />
The check pending message thread calls the DBSession class which returns error message objects<br />
that will be inserted into a error message linked list.<br />
JavaMail provides methods for sending emails through a SMTP server - this package will be used<br />
to send the email message generated out of the information the error message list provides.