wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Callbacks in RMI and Corba Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Callbacks in RMI and Corba" Watch "Callbacks in RMI and Corba" New topic
Author

Callbacks in RMI and Corba

Rajesh Kumar
Greenhorn

Joined: Oct 25, 2003
Posts: 6
When are callbacks used in RMI and CORBA?
what are the mechanisms available for callbacks
on RMI and CORBA?
Also one last question is JRMP the default protocol used for RMI?
Thanks,
RK
Vinod John
Ranch Hand

Joined: Jun 23, 2003
Posts: 162
Originally posted by Rajeesh Kumar:
When are callbacks used in RMI and CORBA?


When ever the server piece want to inform the client piece of some event that has happened in the server.

what are the mechanisms available for callbacks
on RMI and CORBA?

for rmi call back check out this http://www.coderanch.com/t/209284/java/java/RMI-Callback-Mechanism-Firewalls
There are lot of good article in jguru.com site
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

When are callbacks used in RMI and CORBA?
Whenever it makes sense to update a client program about a change of state in a server program.
what are the mechanisms available for callbacks on RMI and CORBA?Callbacks in RMI and CORBA are fundamentally no different from each other, although it usually makes sense to use dynamically loadable stubs (from the initiating client) so the server doesn't need to know who the client is at compile-time.
Once you get into distributed systems like Jini and Jiro, there's an added element, known as a handback object, that is also used. A handback object helps insure that the object invoking a callback method is in fact the same object the initiating client asked to register to.
Also one last question is JRMP the default protocol used for RMI?
Does the Pope wear a funny hat?


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
 
subject: Callbacks in RMI and Corba