Can you share the trace log of your program running? Did you call
connection.start() before getMessages() is invoked? That is not included in
the codes you paste.
--
[Message sent by forum member 'liang.x.zhao']
View Post: http://forums.java.net/node/900132