I am trying to build an application which has a database at the backend.
I have an ipaq and would like to know what to install for a java based development. Which dB is recommened and what should i install.
Actually this is what i want to do.
1) retrieve a name from my database after choosing frm listbox entries - so its a relatively simple app with just a few data entries and their retrieval.
I was wondering if i should install Sun's toolkit or what!
Plz guide and thnx for replying!
Second, yes, you should install Sun's J2MEWTK. However, I'd suggest installing the one for MIDP 1.0 if you want to distribute the application -- MIDP 2.0 phones will not be mainstream for a while... (ofcourse you can install both and see that it runs on both)
Originally posted by Lasse Koskela:
Ok. First of all, I'd suggest making the database query with XML-over-HTTP so you don't need to get a JDBC driver for MIDP. There are some tutorials for doing that kind of things around the web.
You brought up a good point. You mentioned using XML over HTTP (ie: SOAP or XML-RPC), however, in one of my courses (Mobile Java), our professor indicated that rather than transferring data via an XML format, you should consider using a script/servlet that runs on the server, and communicates with your service (ie: database, etc.). The script will then retrieve the results, and then simply return a string object to the MIDlet.
His main argument is that the MIDlet should process as little as possible. Although it does make sense, I'm not sure if I agree 100%, as there are solutions (ie: kXML-RPC/kXML) that allow for light-weight devices to handle XML transmissions.
What are your thoughts?
But i need to know which jvm to use if i dont have any coming with my ipaq?
[ November 13, 2003: Message edited by: faiza athar ]
I think your professor is right. I also think I am right. It's a matter of balancing performance, flexibility and reuse.
Originally posted by Frank Manno:
What are your thoughts?
If you're going for top performance, you'll perform all possible processing on the server and use a custom, tuned binary protocol for transferring data. However, this approach is so specific to your particular application that extending and reusing it will be harder than if you would have employed a standardized protocol (or even just custom XML) for which there are robust implementations available off the shelf.
2) Download the wireless toolkit (http://java.sun.com/products/j2mewtoolkit/download.html)