File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI with J2ME

 
rajshkhr pandey
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should inspect JSR-66.
But, also you can try to create web sevice.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
rajshkhr pandey
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic