Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update an attribute of a MIDlet

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In a networking application, if the Server IP which the MIDlets connect is going to be changed, is there a way that the server can push some data and update the IP? I am thinking of specifying the server IP as a MIDlet attribute?
Thanks for your time.
 
Amila Jayatillaka
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that's possible. First for that we have to think a way to track the phones which are using the application. So only thing which can be done is have it(the IP & etc)in a record store and when ever the application opening check the server for changes and do the changes in the record store.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a thing like that, record it in the RMS.
You can't change the MIDlet's attributes stated in the JAD or Manifest

As to the concrete example you mention, if possible, why not use an host name instead of an IP address?

Cheers
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answers. Well the reason that I want to figure out a way to do this is, that there is a chance that the IP address might change in the future. So I want to have a mechanism where I can update the IP address automatically. I guess using the host name is a viable solution. Many thanks for the answers once again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic