I would like to connect from JBoss AS 6 to Apple Push Notification server using socket.
My problem is that Apple recommends to use the same socket for sending messages (or a pool of sockets). It prevents the DDOS like thing when I send too much messages and blocking my ip address.
My solution: The socket will be opened from singleton bean[SB] and saved in HashMap for further usage. I am going to use stateless bean to send messages by getting the socket from [SB].
I just wanted to ask maybe there is a build-in solution for caching/pooling sockets opened to connect to the clients in JBoss AS 6.
Thank you in advance!