email - passing java mail message object from between applications -


I am using Java Mail API 1.4.1 to receive new emails. Two sections are being used to receive emails and then parsing it "GetMail" communicates with the class mail server (gmail, yahoo etc.) and receives the message object. Then the message object is passed to another class "mailformer" class, which then parses the message object, receives the email header (to, to, topic etc.) and then to get the main body and attachment multipart Parses content. Both "mail milling" and "mail formatting" processes are very resource, these sections are being implemented as separate web applications. This app is going to monitor new emails for many email IDs. If these ("GetMail" and "MailFormatter") are implemented as separate web applications, how can I pass the message object "MailFormatter" app from the "GetMail" app? Is there a way through which I can continue the message object in a fixed location (a place which is common to both "GetMail" and "MailFormatter" applications), so that the "GetMail" message object is released on that location , And then the "MailFormatter" app can read "Message" objects from that location and issue the parsing process. Message objects can not be serialized, if they can not be sorted, how can I create a status of a Java mail message? Please help me solve this problem.

Well MimeMessage can be sorted with writing (OutputStream) and with deserialized creator MimeMessage (session, InputStream).

Then a message can be sent from one webpad to another.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -