Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote method invocations and Event based systems

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my understanding the two paradigms for distributed programming are RMI and event based systems. To learn about distributed programming I have decided to use java as I already have a pretty good grasp of it(I hope). I am pretty sure that RMI facilitates the two above mentioned methods.
Is this right?
For event based systems what interface does an object implement to receive event notifications and how do they subscribe to events?
Regards
David
 
Idly Vada
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by david allen:
For event based systems what interface does an object implement to receive event notifications and how do they subscribe to events?

Hi David!
RMI is undoubtedly one of the best mechanisms to implement didtributed applications.It has features like callback operations,dynamic classloading,object activation and ability to use different transport protocols.
But I feel event based systems will be more robust.And the components of event based systems need not be tightly coupled.
Are you aware of JMS(Java Message Service). It enables you to devlop robust event based enterprise systems.
for more info on JMS:
http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/jms_tutorialTOC.html
[ September 23, 2003: Message edited by: Murthy Narasimha ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic