Have a look at this forum post
, It helped me quite a bit. Push registration is quite a complex protocol that involves sequenced communications between the client (a BlackBerry Device), the server (your web server) and the push gateway (RIM's server). The client code must send the right data to the gateway and server at the right time, and you server must respond to the gateway and the client in the correct way. All this is needed to ensure security and prevent abuse. Trust me, you really do need to put the effort into understanding the protocol if you want to step outside the box and use your own code. I'm using code I developed starting from the link above, and it still works today.