java home and remote

India
March 15, 2007 5:57am CST
Hi! Its a very simple question that I want to clearify.. What the difference between java home interface and java remote interface. Is it like client and server/remote machine? Hope to see some answers soon..
2 responses
• India
15 Mar 07
yeah..thats exactly...
• India
15 Mar 07
Hi Khusboo, Java Home Interface The home interface defines the bean's life cycle methods, One of two interfaces for an enterprise bean. The home interface defines zero or more methods for creating and removing an enterprise bean. For session beans, the home interface defines create and remove methods, while for entity beans, the home interface defines create, finder, and remove methods. The home interface extends javax.ejb.EJBHome which in turn extends java.rmi.Remote. Java Remote Interface public interface Remote The Remote interface serves to identify interfaces whose methods may be invoked from a non-local virtual machine. Any object that is a remote object must directly or indirectly implement this interface. Only those methods specified in a "remote interface", an interface that extends java.rmi.Remote are available remotely. Implementation classes can implement any number of remote interfaces and can extend other remote implementation classes. RMI provides some convenience classes that remote object implementations can extend which facilitate remote object creation. These classes are java.rmi.server.UnicastRemoteObject and java.rmi.activation.Activatable. Hope this helps you :)