• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Update an attribute of a MIDlet

 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic