Re: Java ME and remote classes

[email protected] Mon, 14 Jul 2008 08:52:25 PDT
Newsgroups gmane.comp.java.sun.kvm
Message-ID <25467691.273601216050776617.JavaMail.tomcat@sdcst12.sjc.collab.net>
Quo, 

  Robin is correct that doing the class loading thing on ME is not possible.  However if you are needing a class to hold your data, then you might try a hashtable.  This would allow you to put anything into it given a key name.  Then to do something like text substitution you could ask the hashtable for that variable, and load in the results.   You would want to most likely have a string key, and an Object values where the values class would have a few things like type of variable, and the value, the name might be good, and possibly a length for strings to speed up some of your code.  Maybe have 2 types of classes for the value, one for primitives, and the other for strings, and possibly a third for objects which had something like class name, etc..

There is another couple of solutions too, there is a product called MoJax my mFoundry that allows for dynamic code updates, it does this by providing a javascript engine in ME.
There is also another product called Bling, from Blingsoftware which is similar, but give you more control over the server, and business end of the system.   Again another JavaScript solution.
Then there is Widsets by Nokia, that is more of a Java based language.    Or like I did for a company write your own VM in javaME.   Yes it can be done, no it is not simple. :)

Good luck, 
-Shawn
[Message sent by forum member 'sfitzjava' (sfitzjava)]

http://forums.java.net/jive/thread.jspa?messageID=286453

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".