Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and j2me

 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
how can i use RMI with my j2me application
do i need to download some packages?
Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No actually they have SocketConnection and ServerSocketConnection classes that you can use that are part of the J2ME API packages. Or you can create Servlets to handle communication between J2ME device and a Server to do your work for you.

Mark
 
John Lowe
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For J2ME-CLDC RMI (and serialization, and dynamic class loading) is not supported, per the CLDC spec. Serialization and RMI (and dynamic class loading) have JVM level implemantation details, so there is no .jar that can just "add it in". Hence, it's not going to happen on a CLDC (e.g. MIDP) based system- at least not a real, J2SE compatable RMI. For CDC class RMI systems (and serialization) is supported.

Yes, this a real headache...

-John
 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May I know how to create web service of j8583 library.
I want to access this webservice from j2me client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic