PDA

View Full Version : Making SimpleMailMessage serializable?


dhalbrook
Sep 8th, 2004, 08:25 PM
I've been using the Spring/Quartz integration and found it really useful, esp. its clustering capabilities. I'd like to use the DB backed job store to send mail, however, i've found that the SimpleMailMessage doesn't implement Serializable, so I can't just drop one into the JobDataMap and go my merry way, and expect it to serialize correctly.

Is there a reason why SimpleMailMessage doesn't/shouldn't/couldn't implement Serializable?

Thanks,
Dolan

dima767
Sep 12th, 2004, 08:16 PM
Dolan,

the SimpleMailMessage has been made Serializable and is available in CVS HEAD.

dhalbrook
Sep 13th, 2004, 11:57 AM
Thanks Dmitriy -- this makes my code a whole lot more straightforward!

-Dolan