Question: Can Someone say how can I serialize each mail object separately? And also want advice to do the rest as well. (I have already completed
Can Someone say how can I serialize each mail object separately? And also want advice to do the rest as well. (I have already completed the Java sending functionality . Now I want to code the java receiving functionality according to above guidelines) . I used Java Mail Api
1. Continously check and retrieve new emails 2. Emails retrieved from the server should be converted into Email objects and serialized into the hard drive (each object should be serialized separately). 3. Whenever an email is received, the email receiver should notify an EmailStatRecorder object and an EmailStatPrinter object. Upon receiving the notification from the email receiver, EmailStatRecorder prints the following message to the console "an email is received at current time)". EmailStatPrinter prints the same message to a text file in the hard disk. The communication between the email receiver and EmailStatPrinter/EmailStatRecorder should be implemented using observer/observable concept. Email receiver should have only ONE list of observers. 1. Continously check and retrieve new emails 2. Emails retrieved from the server should be converted into Email objects and serialized into the hard drive (each object should be serialized separately). 3. Whenever an email is received, the email receiver should notify an EmailStatRecorder object and an EmailStatPrinter object. Upon receiving the notification from the email receiver, EmailStatRecorder prints the following message to the console "an email is received at current time)". EmailStatPrinter prints the same message to a text file in the hard disk. The communication between the email receiver and EmailStatPrinter/EmailStatRecorder should be implemented using observer/observable concept. Email receiver should have only ONE list of observers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
