This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41054
    
  43
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 - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I identify the connection problem?
 
Similar Threads
URL settings in Java Mail server
javamail and pstn connection
how can i display?
Regarding Connection Problem
Java Mail - how to do proxy settings?