• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploying an RMI application

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have read about the concepts of RMI. I have understood its concepts and the program.

If I want to run it in a standalone computer then its fine, but I want to run it in a networked environment then please do let me know how to deploy the RMI application. I would like to know how to transport the .class files which are needed on server and client computer.

Please do explain me and also do provide me the link where I can find more details on this.

Thanks and Regards,
Siddharth
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need to know how to transfer the .class file from the client to the server as long as you have the stub in your client and make sure the server is running. The stub is responsible of making a network communication with your server.

You may want to read this.

Hope it helps.
 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Freddy ,

I had already read this, but couldn't understand much of it.

I would not like to use a command line utility rather I would like to use an eclipse plugin.

This tutorial talks about a web server in a networked environment. I would like to know what's the role of web server here and which files do we transfer to the web server.

For e.g. if I want to make a chat server using RMI then which java files would be on the server and which files should be on each client and how do I make each client download the respective files.

This is my main cause of confusion.

Thanks
Siddharth
 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Any update on this?

Please provide me the information about deploying an RMI application in a networked environment.

Thanks
Siddharth
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddharth Bhargava wrote:Please provide me the information about deploying an RMI application in a networked environment.



Why do you want to do this? Most folks these days pass messages back and forth, not Java objects.

RMI can be made to work, but I'm not convinced that its worth the trouble most of the time.
 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pat,

I would like to build a chat application using RMI.

For this, I would need a server on one computer and various clients connecting to the server from various other computers in a networked environment.

Please help me

Thanks
Siddharth
 
Pat Farrell
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddharth Bhargava wrote:I would like to build a chat application using RMI.



I see this as two possible questions:

1) I would like to build a chat application.
2) I would like to build a chat application using RMI.

I would strongly recommend that you phrase it as #1, and don't use RMI. You can much more easily write a chat application without all the baggage and complexity of RMI. It would be a better application. And you could do things like write the server side using Java and offer many implementations of the client in Java and python and perl and c#, etc.

So the question is, do you "require" RMI because of an external complain, say this if for a class assignment ?
or do you think you need RMI because you don't know how to start doing it another way?
 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pat,


I would like to built a chat application using RMI as it would solve my purpose of learning RMI and using it in a networked environment.

I am not doing it for any class assignment. Also I know how to do it in other ways, its just that it would help me in learning RMI in a networked environment.



Thanks
Siddharth
 
Pat Farrell
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddharth Bhargava wrote: Also I know how to do it in other ways, its just that it would help me in learning RMI in a networked environment.



In that case, I'll be quiet and let someone else help.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not a pro with RMI, however,
from the little I know about RMI...

You need the the RMIserver, RMIimplementation, and RMIclass files at the server.....
and RMIclass, and RMIclient at the client side...!!

P.S.
RMIServer - the class that binds the class
RMIimplementation - the class that has the implementation of the class
RMIclass - the class that has the interface
RMIclient - name is suggestive...
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic