I am working on a possible PushRegistry solution for a J2ME cellphone app. (for now, I am registering an HTTP connection, but see no reason why I couldn't switch to SMS, Datagram, etc.) I have a bare-bones implementation written, for initial testing purposes. So far everything seems to work on the client side; at least, the push registry is made without any errors. I was about to sit down to write a simple chunk of code on the "server side", which would push the data to the cellphone... and then I realized I had no idea how the server would initiate the connection.
(Note that, in this scenario, I am using the term "server" backwards... by "server", I am referring to my J2EE application server that would actually try to connect to the cellphone. So yes, my cellphone would be the true server...)
If I was to cause one Java app to connect to another via HTTP or similar protocol, I would create a Connection with an IP address. So, is the cellphone supposed to have an IP address? How do I uniquely identify the callphone that I want my app server to send data to?
Dave Taubler<br />Specializing in <a href="http://taubler.com/articles/" target="_blank" rel="nofollow">Java and Web Development</a>