Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

POP3Message and MimeMessage are not Serializable, looking for a workaround

Thread view: 
robert.dodier@gmail.com - 15 Mar 2006 20:17 GMT
Hello,

I'm working with the JavaMail API. I'd like to send some messages
through a socket.
However, it turns out that com.sun.mail.pop3.POP3Message and
javax.mail.internet.MimeMessage are not Serializable.

Well, if they're not Serializable, then if there was some way to
send the parsed message as, let's say, XML, that would be just as good.
However, there isn't any built-in method to convert a parsed message
to XML, so far as I can see.

I can, of course, write my own method to call the various getters
to collect the pieces of the message and then format an XML message.
But I'd rather not reinvent the wheel here -- surely others have run
into
this same problem? Although after Googling I haven't found any
solutions.

I guess I can send the original message, and parse it again on the
recipient's end, but I'd rather just preserve the parsed format.

Thanks for any insights.

Robert Dodier
Roedy Green - 15 Mar 2006 22:42 GMT
>I'm working with the JavaMail API. I'd like to send some messages
>through a socket.
>However, it turns out that com.sun.mail.pop3.POP3Message and
>javax.mail.internet.MimeMessage are not Serializable.

send the completed email. Put a mail server at the other end.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.