• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

PushRegistry... what does the server need to do?

Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
    Bookmark Topic Watch Topic
  • New Topic