I have started a new J2ME project to simplify Rails integration:
J2ME on Rails
https://sourceforge.net/projects/j2meonrails/
J2ME on Rails is an J2ME port of Ruby on Rails' ActiveResource. It provides a way to serialize objects to and from Rails' standard RESTful web-services. J2ME on Rails is inspired by ObjectiveResource (http://iphoneonrails.com) and uses kXML 2.
Some example J2ME code to illustrate:
// Configure J2meResource
J2meResource.setSite("http://localhost:3000");
// Get the User object with login 'Tom' from Rails server
J2meResource user = J2meResource.findRemote("User", "Tom");
System.out.println("ActiveResource User.username = " + user.getProperty("username"));
// Change information
user.setProperty("age", "32");
// Update Rails server
user.saveRemote();
It is not complete by any means. The developer API and HTTP functionality is more or less done, but the XML parsing (using kXML 2) needs to be implemented, as well as more functionality for nested XML (and Rails object) structures.
Please help out if you can!