Hello all I found out that there are 2 open source projects I can use: javapns (http://code.google.com/p/javapns/) and java-apns (http://github.com/notnoop/java-apns)
Both of them are pretty good, but do not handle error responses. When you compose a payload in enhanced format, you can include an identifier with the payload and send it to Apple Push Notification Server. You can read on the socket and receive the status of the response(matched by the identifier sent in the notification), if there was an error.
But, none of the java libraries handle this case. Is there a good reason why the libraries are not reading the socket for a response ?
Also, let me know what other java libraries you have used.
Greatly appreciate you help. thanks.