April 2003
Intermediate to advanced
750 pages
16h 53m
English
This section describes more of the client view for the Banking and Reports EJBs that extends the basic client example in “EJB client view” on page 56. The examples are based on remote home and component interfaces.
We highlight where the client view changes depending on whether the bean is stateful or stateless.
Figure 5-25 shows the finding of a home interface of a session bean.
InitialContext ctx = new InitialContext();
Object objHome = ctx.lookup("itso/BankingJNDIName");
BankingHome bankingHome = (BankingHome)javax.rmi.PortableRemoteObject.narrow
(objHome, BankingHome.class );
|
Because we use a remote interface, ...
Read now
Unlock full access