# @ejbgen:ejb-interface Annotation

Specifies the EJB interface the bean implements. In most cases this tag does not need to be used; When you define a new EJB using the IDE, the bean definition will automatically implement the correct interface. For more information, see How Do I: Create an Enterprise JavaBean?

## Scope

Class tag for a an EJB.

## Syntax

@ejbgen:ejb-interface

ejb-type="InterfaceName"

## Attributes

ejb-type

Required. One of the following interfaces can be selected:

> - javax.ejb.MessageDrivenBean
> - javax.ejb.EntityBean
> - javax.ejb.SessionBean

Related Topics

How Do I: Create an Enterprise JavaBean?