In the Client.java, it lookup the EJBHome interface and create an EJB Bean instance.
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?
-
create an instance of remore "interface"? (1 messages)
- Posted by: Peter Chang
- Posted on: March 06 2005 14:06 EST
Threaded Messages (1)
- create an instance of remore "interface"? by adrian osullivan on March 07 2005 06:47 EST
-
create an instance of remore "interface"?[ Go to top ]
- Posted by: adrian osullivan
- Posted on: March 07 2005 06:47 EST
- in response to Peter Chang
Correct. The EJB container automatically creates an object that implements the interface. The home interface returns a reference to this.