hi to all, can anybody tell me the basic difference between RMI and EJB ..and why EJB is preferred...
Marcos Maia
Ranch Hand
Joined: Jan 06, 2001
Posts: 977
posted
0
Hi, Java RMI is a protocol used to communicate method invocations over a network and does not provide services(you have to hard code it) like declarative transaction control, security, scalability, load balancing, fail over , etc. EJB is a component specification that uses RMI to communicate method invocations over a network and also provides services(container implementation) to handle transactions, security, etc.