• 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

OTA MIDLet deployment - Back to basics

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone bear to go 'back to basics' for a while?
I would like to get a proper handle on the process of deploying MIDlets onto a mobile phone.
Assume I have my MIDlet code developed. How do I deploy my MIDLet to my phone over the air?
Do I need to set up a web-site?
What sort of hosting facilities do I need?
How do I get the MIDLet down from the web-site?
What else do I need to think about?
Sorry for being very basic but... I want to stop playing in JBuilder and start using in the real world.
Any help, including sample code, URLs of relevant sites, hosting company names (UK based), etc etc would be VERY welcomed
Thank you in anticipation
Regards
Pete
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JAD file should contain an attribute called "MIDlet-Jar-URL", which tells the terminal where to fetch the actual application code, the .jar file.
As far as I know, it should be enough to upload MyMidlet.jad and MyMidlet.jar to a web server. The worst case should be that you have to tweak/add some MIME-type definitions to the web server.
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
First when you are developing your midlet you have to specify the URL from where the JAR file will be downloaded. You will find this by clicking the "Settings" option in the J2ME Wireless Toolkit 1.0.
Next you make a wml page with a link to the JAD file. Ofcourse you will have to upload the JAD and JAR files on some server. When the user clicks on the link, the JAD file is downloaded on the device. The Application Management Software examines/verifies the JAD file. If it is appropriate the JAR file is automatically downloaded to the device. Remember, you had already provided the link for the JAR file by using the settings option.
In order to server a JAD file from your web server its MIME types have to be added. This can be done by adding the following line:
text/vnd.sun.j2me.app-descriptor.jad
Just e-mail the tech support of your hosting provider and they will do it for you.
Apart from this, since you will be using WML pages so your server should be able to serve them as well. Again the MIME types for WAP/WMLpages have to be added. You have to contact tech support.
Be a bit careful in choosing your server/hosting provider. Tomcat3.0 does not server WML pages even if MIME types are added. I checked this on my test server. So i had to upgrade to tomcat4.1. I also chose a hosting provider running Apache/Tomcat 4.1. I chose tomcat since i'm using java servlets.
More questions are welcomed.
Danish
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as hosting services, I would recommend checking out http://www.1t3.com/ . They offer everything you'd need for $30/year.
I haven't seen anything cheaper than that and although I haven't used it myself, I know several people have recommended it.
I know they allow you to configure MIME types, which is something that is important to what you are doing (as you have seen in the previous posts).
If you end up using them, let us know the hosting service is.
 
Pete WesternHope
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for hints, guidance and advice - all much appreciated!
Kind regards
Pete
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic