mime settings in Appache server


Dear all,

I want to put my application in my web site, but my web hosting said they don't support wap or jad/jar settings, their server is FreeBSD servers with running Apache ,

I don't know if it is true or not ?, I thought that mime settings is something that I can configure ?,

my question is , is it a global parameter or can be specific for every web site ?

another question, do you know any free web hosting that supports wap, jad/jar ?

thanks for help
LVL 1
khamoudaAsked:
Who is Participating?
 
jimmackCommented:
:-)

In the example I posted, the WAP page that you access would be:  http://www.mine.net/MyPage.wml

This page should be displayed as follows:

MyPage
------------
Download the demo using the following link:
MyDemo MIDlet: MyDemo

(Where the last "MyDemo" text is the link)

Selecting the link should then access the JAD file.  When the handset gets the content type of ...j2me.app-descriptor, then the Java Application Manager on the handset should take over, display the MIDlet details (from the JAD file) and ask if you want to download/update the MIDlet on the handset.
0
 
jimmackCommented:
I'm not certain how to add MIME types to Apache, but I know that there's plenty of information about it ;-)

You will need to add some of these MIME types to your Apache setup in order to allow J2ME downloads:

wbmp  image/vnd.wap.wbmp
wml  text/vnd.wap.wml
wmlc  application/vnd.wap.wmlc
wmls  text/vnd.wap.wmlscript
wmlscriptc  application/vnd.wap.wmlscriptc
jad text/vnd.sun.j2me.app-descriptor
jar application/java-archive

Since WML, JAD and JAR are just different terms for data that is transferred across the link, it is not important that your hosting company doesn't understand them.  For WAP, the "complicated" bit should be dealt with by your mobile network provider (ie. the conversion into the compressed binary formats used by WAP).  The JAD and JAR files are just downloadable files.
0
 
jimmackCommented:
Sorry.  Forgot to add...

When Apache has these MIME types configured, they apply to all sites on the server.

I don't know about any free hosts, but any host that provides the latest servers should be OK, since JAD, JAR and the WAP MIME types seem to have been included in all the latest servers for over a year now ;-)
0
On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

 
khamoudaAuthor Commented:

Ok I will assume that they have all these mimes, all I have to do is to change the JAR-URL in the jad file to point to the jar folder, and upload the  .html file that get generated in the bin directory ?

thats it ?

0
 
jimmackCommented:
Normally, on a live site, you'd have a WML page that contains a link to the JAD file, eg:

MyPage.wml

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
  <card id="card1" title="MyPage">
    <p>Download the demo using the following link:</p>
    <p>MyDemo MIDlet: <a href="MyDemo.jad">MyDemo</a></p>
  </card>
</wml>

This would rely on the fact that MyDemo.jad is in the same directory and that the JAD file contains the correct MIDlet-Jar-URL to the MyDemo.jar file.

If you provide HTML, then that will limit the phones that can access the page.
0
 
khamoudaAuthor Commented:
but the address that will be used in the mobile is www.mine.net/Mydemo.jad or MyPage.wml ?

what I saw is mydemo.jad but your case it seems different
0
 
khamoudaAuthor Commented:

ok thanks ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.