Re: JOGI & J2ME?
"murphee (Werner Schuster)" <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
Adam Tauno Williams wrote: >>wanted to write a specific J2ME app. The project (from the google search >>above) also contains links to XML-RPC libraries that work on J2ME, >>so if you want to do this, you can. >> >> >We are evaluating a wireless device from RIM (the Blackberry people) >that is a J2ME platform. OpenGroupware integration is a requisite, >hence the question. I suppose just basic XML-RPC support is enough to >get us somewhere. > > I think for that you can simply use the KXML-RPC library http://kxmlrpc.objectweb.org/software/downloads/ to access XmlRpc from Java (the project seems to be somewhat deceased... but it's still available and it's small enough so you could fix/enhance stuff on your own). >If "Collections" in Java means the same thing as Collections in .NET >(ArrayList, HashTable, etc...), then yea, lack of it would suck. [ I'm >not terribly familiar with Java ]. > > Well... Java has always had some Container classes (Vector == .NET ArrayList, Hashtable == .NET HashTable, Enumeration == Iterator (I don't know if that's the same name in .NET)). The problem: these were always specific classes (and: all methods are synchronized which can have a slight performance overhead). With Java 1.2, the Collections API improved this by defining Interfaces List, Map, Set, Iterator, and by providing specific implementations for those (ArrayList, LinkedList,....; HashMap, LinkedHashMap,...; ...). This seperation makes this much more flexible than the old Vector/Hashtable classes (these were, though, retrofitted to implement List/Map as well). For some reason, J2ME didn't follow this... I don't know why (well, I *suspect* some performance reasons, as interface invoked methods can be a bit slower on non optimizing VMs (interpreters, very simple JITs), but that's just a suspicion), but it's rather dumb anyway... Hmm... I'm wondering: which J2ME Profile do you use? MIDP, MIDP 2.0? For those, JOGI won't work (for the issued explained above), but if you should use the CDC or CLDC profiles, it should work, as they include those classes (J2ME has different "profiles", and CDC are supersets of MIDP2.0 for more performant devices, though I don't know whether they are already used); murphee -- Werner Schuster (murphee) Student of SoftwareEngineering and KnowledgeManagement Maintainer of the OGO-JOGI Project @ http://ogo-jogi.sourceforge.net/ Blog @ http://jroller.com/page/murphee -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc