• 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

How to Call ClientCallBacks from the Server

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI

i am having two RMI programs

1.ClientCallBack it is a Remote Interface, implementation call and created stub and skeleton.

2.ServerRMI it is an interface, i have an implementation class and created stub and skeleton.

I want to access ClientCallBacks from the server and vice-versa.


How to do this.
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
first the Server should be remotly available
so you'll bind the server in the rmiregistry.
second the client lookup for the server and
register himself at the server, the server should
keep a Vector (List etc .. ) of all the clients
when he want to invoke a client methode he wont lookup
for clients, he will use them directly from his Vector(List )
i hope that what i wrote helped you
i'll post tomorrow a simple example that shows how to do that
Best, Omar
 
reply
    Bookmark Topic Watch Topic
  • New Topic