web.xml Visual Editor: EJB References

Use the EJB References section to add, remove, and view the web application's references to EJB modules. The reference created here is mapped to the actual location of the EJB module at deployment time, when you define the necessary mappings in the server-specific deployment descriptor.

In the Visual Editor, click References at the top of the editor to open the References section, then click the EJB References header to open the EJB References section. Use the EJB References section to add, remove, and view the web application's EJB references.

Click Add to define a resource reference element with the following properties:

Element Description

EJB Reference Name

Specifies the resource reference's name, such as myDataSource.

EJB Type

Specifies the expected Java class type of the referenced EJB.

Interface Type

Specifies the expected interface type of the referenced EJB.

Home Interface

Specifies the fully qualified class name of the EJB home interface.

Remote/Local Interface

Specifies the fully qualified class name of the EJB remote/local interface.

Linked EJB

Specifies the name of an EJB module in an encompassing J2EE application package.

Description

Specifies a description.


Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

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