Give it a name, so clients can look it Up

We’re now dangerously close to deployment, and the last step is to give the bean a JNDI name. That’s the name clients use to get a reference to the bean. (Well, to what the client thinks is the bean, but we’ll save the gory details for the next chapter.)

The bean’s JNDI name is simply the logical name you choose (or, in the real world, whoever deploys the bean). It doesn’t have to match anything from the bean itself. We could, for example, name this bean Homer, which would in fact make it even more fun and challenging for the clients than it already would be with a meaningful name.

Type in the JNDI name Advisor

Click Finish

Take a deep breath and hold it until the deploy process completes

image with no caption

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.