Two Laptop Bag
The moose likes Java Micro Edition and the fly likes RMI with J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "RMI with J2ME" Watch "RMI with J2ME" New topic

RMI with J2ME

rajshkhr pandey
Ranch Hand

Joined: Oct 14, 2009
Posts: 35
Hello to all,

I have developed a RMI application which works fine with my desktop. The server serves to the clients request after client logs in.
Now I want to know that can I develop a J2ME application so that I can use the same server code and connect to it and use the services of server?
Or otherwise suggest me what to do??

Thanks in advance
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
You should inspect JSR-66.
But, also you can try to create web sevice.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

A web service might be a better solution. If you attempt to do RMI over a telephone carrier's network, you may find that they firewall the RMI ports. I've already run into something similar on my own phone.

RMI does best when all components are on the LAN. If you're traversing the Internet, web services are somewhat slower, but they can go places that the more specialized channels don't reach.

An IDE is no substitute for an Intelligent Developer.
rajshkhr pandey
Ranch Hand

Joined: Oct 14, 2009
Posts: 35
Thanks for your reply.

I think it is right that firewall can block the rmi connection so my code is of no use to my J2ME application that I have asked.
Or I have to develop new program for that?

Thank again.
I agree. Here's the link:
subject: RMI with J2ME
It's not a secret anymore!