aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes How can I identify the connection problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How can I identify the connection problem?" Watch "How can I identify the connection problem?" New topic
Author

How can I identify the connection problem?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hello Everyone,

I have done mail application sending and receiving. That's working fine. During the mail sending/receiving, If any problem in internet connection, How can I identify the error messages to display in UI Page for user view.


So User can easily identify, Some internet connection problem. I got exception in console only. Is it possible to display internet connection problem error messages to display in UI Pages for Users view.

Please let me know.

Thanking You

Regards,
Edward


Thank You<br />Edward
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
You'd probably get one of the subclass-exceptions of MessagingException (assuming you're using Transport.send). Why don't you simulate a problem by pulling your network connection before sending, and observe which one it is?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I identify the connection problem?
 
Similar Threads
Regarding Connection Problem
how can i display?
javamail and pstn connection
URL settings in Java Mail server
Java Mail - how to do proxy settings?