• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serving a jar file to mobile phones

 
lekkie Nakel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I want to serve a jar app (140kb) to a mobile phone over the web. I tried getting the file into a file object and pass the stream to the response outputstream it didnt work. However, I later redirected the server to get the jar from a path relative to the servlet context.

I tried to access the object from web browser, i could download it but the mobile phone kept sayin no response.

Is the file too large?

I am running a tomcat serve. I have check the mime headers and wap extensions, they are fine. Any body with any idea (snippets) shld pls help wit this.

What else could b the prob.

Thnx.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should be in J2ME. Anywho... once you specify the path in the phone and if the file being served is a jar the phone should automatically ask you if you want the jar installed. Are you typing the URL correctly ?
 
lekkie Nakel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, its a file size issue.

Have anybody heard abt SAR (Segmentation and Reassembly). I need a framework that can split the file into chunks which will be reassembled on the client phone.
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How were you able to diagnose the issue? Wouldn't SAR need support from the WAP gateway and client stack?

If so, I am not certain how much can be done to remedy the issue sans changing hardware and/or service provider.

What about HTTP chunking? Maybe there is a protocol mismatch somewhere along the line. Does the AMS report anything to the server? Let us know if you find a solution.

Good Luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic