How to use Java mail API connection listener

hi,
Very urgent..
how to implement connection listener while downloading emails from a imap server.ie I want to get an alert when ever connection to mail server is lost.My program  cntinuesly downloads mails using messagecountlistener.

Thanks in Advance
hemanth_mca123Asked:
Who is Participating?
 
Mayank SAssociate Director - Product EngineeringCommented:
The implementation of the interface will be your own? When the connection is lost, do whatever you have to do in the disconnected () method.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Please proceed with that recommendation.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.