• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

How to connect to a local server from J2ME enabled i88s phone?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
I've developed a client-server application in J2ME. This application works fine when run from emulator. It connects to the server, gets the data from the server and displays it on emulator screen. But when the application is installed and run from the phone, it fails to connect to the server.
Environment details are as follows:
Client: Motorola's i88s phone.
Service provider: Nextel
The application is developed using Motorola iDEN SDK.
Emulators used for testing the application are: J2ME Wireless Toolkit 2.0 and Motorola iDEN Emulator.
Nextel's Data plans on client(i88s phone): packet stream. ( Also tried with 'PowerApps' plan)
Server : Tomcat 4.0 in LAN.
Software used to load the application on the phone: iDEN WEBJal( Java Application loader )
Name of the application: Drivers Handheld application.
Did anybody come across the similar problem? Do I need to have any other data plans from Nextel? Or is there any special configuration needed on the server side? Do I need to have any subscription/permission from Nextel or Motorola in order to make my phone enable to talk with my local server?
I've been talking with Motorola and Nextel's software and developer groups for more than 2 weeks now. Any suggestions/solution are highly appreciated.
~Vaibhav.
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is the error message? Have you tried any other network aware MIDP application on your phone? As I understand it, you can only provision your MIDlet to NexTel phones via its MAM. But I might be wrong ...
 
Vaibhav Sanas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,
I dont get any error message, the application just gets stuck after displaying message "Ph2Server Starting ..." ( Ph2Server is the name of my application ). This shows that the application tries to connect to my local server but doesnt get its attempt successsfull.
I have tried other MIDP network applications on this phone and they work...They can talk to yahoo and nextel servers.
By the way what is MAM ?
let me know if you have any suggestions.
~Vaibhav.
 
Michael Yuan
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you check your Tomcat log to see whether it logs a connection from the device? Also, try a direct IP URL if you were using DNS names before.
MAM is Mobile Application Manager. Since you already installed the app on the device, you already passed this step.
 
Hug your destiny! And hug this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic