aspose file tools*
The moose likes Java Micro Edition and the fly likes Update an attribute of a MIDlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Update an attribute of a MIDlet" Watch "Update an attribute of a MIDlet" New topic
Author

Update an attribute of a MIDlet

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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.


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Amila Jayatillaka
Greenhorn

Joined: Sep 29, 2006
Posts: 28
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.


SCJP 1.4, SCMAD 1.0, SCWCD 5.0
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
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


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Update an attribute of a MIDlet