Hi Robin and all,
you are right - J2ME lacks the necessary reflection for that stuff,
so it's even more amazing we really made it as easy as on J2EE/J2SE.
We are providing serialization support with a J2ME Polish specific
postcompiler - so we're doing in build time what J2EE/J2SE does
For interacting with your server follow these simple steps:
1) define an interface extending de.enough.polish.rmi.Remote - make
sure that all parameters either implement Serializable (no methods
need to be implemented manually) or Externalizable (implement read/
write Method yourself) or are primitives or typical Java classes like
Vector, Hashtable, Date, Image, etc
2) in your mobile application call RemoteClient.open("http://
yourserver.com/yourservice") for obtaining an implementation of your
server interface defined in step 1. Session handling is done
transparently as are redirects, the implementation is hardened and
works on all handsets.
3) implement your server by extending
de.enough.polish.rmi.RemoteServlet and implementing your interface
defined in step 1)
Now let J2ME Polish build your application and deploy it - that's
For more detailed instructions see
Of course we do provide a sample application - http://
www.j2mepolish.org/mobile/j2mepolish-2.0-Preview.jar contains it.
All the best,
On Sep 25, 2007, at 1:35 , Robin Chaddock wrote:
> "Just as easy as on J2EE/J2SE" is a slight exaggeration of
> RMI support.
> CLDC by it's very nature lacks the necessary reflection & class loader
> capabilities to allow true Serialization & RMI.
> On the other hand CDC with the optional RMI package extensions does
> fulfill your 'just as easy as....' claim.
> Robert Virkus wrote:
>> Talking about serialization - you could also consider using RMI for
>> the client-server communication. Just as easy as on J2EE/J2SE:
>> You can exchange any objects implementing Serializable or
>> Externalizable as well as most java.util Objects like Vector, Stack
>> and of course also Images as well as all primitives.
>> On Sep 24, 2007, at 21:27 , meinterest@MOBILEANDEMBEDDED.ORG wrote:
>>> There is a small XML parser called NanoXML which is very
>>> but in the end you are still taking java to XML and back.
>>> Another option if you want really small and can live with a few
>>> limitations, look at MDO.dev.java.net, that is project I have built
>>> to transport DataObjects from a JavaEE server to ME devices, and
>>> to save the records in the RMS as well. It's a simple object data
>>> serialization that is a bit more work but more resilient to the
>>> serialization version issue/bug.
>>> Json is nice but still uses a lot of bandwidth, not to mention the
>>> size of the extra libraries to parse it.
>>> [Message sent by forum member 'sfitzjava' (sfitzjava)]
>>> To unsubscribe, send email to firstname.lastname@example.org and include in
>>> the body
>>> of the message "signoff KVM-INTEREST". For general help, send
>>> email to
>>> email@example.com and include in the body of the message "help".
>> Robert Virkus
>> CEO Enough Software
>> SÃ¶gestr. 70
>> 28195 Bremen
>> Email: Robert.Virkus@enough.de
>> Phone: +49 - (0)421 - 8409 938
>> Fax: +49 - (0)421 - 9889 132
>> Mobile: +49 - (0)160 - 7788 203
>> ICQ: 194752667
>> To unsubscribe, send email to firstname.lastname@example.org and include in
>> of the message "signoff KVM-INTEREST". For general help, send
>> email to
>> email@example.com and include in the body of the message "help".
> E-mail is an informal method of communication and may be subject to
> data corruption, interception and unauthorised amendment for which
> I-play, a trading name of Digital Bridges Ltd will accept no
> liability. Therefore, it will normally be inappropriate to rely on
> information contained on e-mail without obtaining written
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail
> in error) please notify the sender immediately and destroy this e-
> mail. Any unauthorized copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
> (C) 2005. I-play is a trademark and trading name of Digital Bridges
> Limited. All Rights Reserved.
> This message has been checked for all known viruses by the
> MessageLabs Virus Scanning Service. For further information visit
> To unsubscribe, send email to firstname.lastname@example.org and include in
> the body
> of the message "signoff KVM-INTEREST". For general help, send
> email to
> email@example.com and include in the body of the message "help".
CEO Enough Software
Phone: +49 - (0)421 - 8409 938
Fax: +49 - (0)421 - 9889 132
Mobile: +49 - (0)160 - 7788 203
To unsubscribe, send email to firstname.lastname@example.org and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
email@example.com and include in the body of the message "help".
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.