Rajiv
|
Posted: October 24, 2010 10:06 by Rajiv
|
| Can anyone explain me the use of and the advantages of using addConnectionListener(listener) in a imaps store before the store.connect() method and in smtp before transport.connect() method. |
Use of addConnectionListener(listener)
Replies: 1 - Last Post: October 24, 2010 23:48
by: shannon
by: shannon
showing 1 - 2 of 2
shannon
|
Posted: October 24, 2010 23:48 by shannon
|
|
Whether you see an advantage in using connection listeners depends on your application architecture. If your application is pretty much straight line synchronous code, you probably won't see an advantage in listeners; you can get all the same information from exceptions thrown by methods. If your application is more event driven, you might find the events sent to listeners helpful. |
Replies: 1 - Last Post: October 24, 2010 23:48
by: shannon
by: shannon







