ejb/SimpleConverter
, but the Web client refers to it as ejb/TheConverter
. These references are in the parameters of the lookup
calls. In order for the lookup
method to retrieve the home object, you must map the references in the code to the enterprise bean's JNDI name. Although this mapping adds a level of indirection, it decouples the clients from the beans, making it easier to assemble applications from J2EE components.To map the enterprise bean references in the clients to the JNDI name of the bean, follow these steps.
- In the tree, select
ConverterApp
. - Select the JNDI Names tab.
- To specify a JNDI name for the bean, in the Application table locate the ConverterEJB component and enter
MyConverter
in the JNDI Name column. - To map the references, in the References table enter
MyConverter
in the JNDI Name for each row.
Figure 2-1 shows what the JNDI Names tab should look like after you've performed the preceding steps.
Figure 2-1 ConverterApp JNDI Names
No comments:
Post a Comment