aspose file tools*
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
Author

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: 16068
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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.
 
jQuery in Action, 2nd edition
 
subject: RMI with J2ME