What is the difference between jms and rmi?
 JMS is a standard Java API to develop message based communication between hetrerognous systems using message. RMI is a Java application programming interface (API) which enables remote invocation of methods between Java programs. 