# Call Enterprise Bean Dialog Box

This dialog box generates a reference to an enterprise bean in a Java class file. Once you have a reference to the bean or bean interface, you can call the bean's business methods.

When you call an enterprise bean, the following occurs:

- A lookup method is created in the caller class.
- The enterprise bean project is added to the caller project's classpath.

- A reference to the bean that is called is added to the deployment descriptor of the caller project or the resource is injected using annotations. If and where the reference is added depends on which of the following applies:

  - If the lookup is made from an enterprise bean implementation class, the reference is added to the corresponding bean.
  - If the lookup is made from any class of a web application, the reference is added to the web application.
  - If the lookup is made from a plain Java class of an EJB module, no reference is added. In this case, the reference has to be added manually to the bean calling the plain Java class.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.