EJB programming & troubleshooting: create an instance of remore "interface"?
In the Client.java, it lookup the EJBHome interface and create an EJB Bean instance.
- Posted by: Peter Chang
- Posted on: March 06 2005 14:06 EST
Then, it create an instance of the EJB remote interface and invoke the methods of EJB remore interface -> then invoke the methods of EJB Bean.
But how can you create an instance of the EJB remote interface? An interface can not be instanciated. Right?
Correct. The EJB container automatically creates an object that implements the interface. The home interface returns a reference to this.