It's not a secret anymore!
The moose likes Java in General and the fly likes Java Mail Listener not being invoked on new mail arrival Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Java Mail Listener not being invoked on new mail arrival

NarayanaRao Konakalla
Greenhorn

Joined: Jan 29, 2008
Posts: 13
Hi
I tried to implement a java mail listener using the MessageCountListener of java mail API.
Program is running but the listener is not being invoked when a new mail is arrived.
I tried to listen to a mail, and if the mail is a desired one, I wanted to read the message and insert the message into a database.

Please help me on this.I will be very thankfu..

Below is the code




Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20083
    
  30

Please Use One Thread Per Question. Let's continue here.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Java Mail Listener not being invoked on new mail arrival
 
It's not a secret anymore!