Naming Conventions for Enterprise Beans

Because enterprise beans are composed of multiple parts, it's useful to follow a naming convention for your applications. Table 23-2 summarizes the conventions for the example beans in this tutorial.

Table 23-2. Naming Conventions for Enterprise Beans
ItemSyntaxExample
Enterprise bean name (DD[a])<name>BeanAccountBean
EJB JAR display name (DD)<name>JARAccountJAR
Enterprise bean class<name>BeanAccountBean
Home interface<name>HomeAccountHome
Remote interface<name>Account
Local home interface<name>LocalHomeAccountLocalHome
Local interface<name>LocalAccountLocal
Abstract schema (DD)<name>Account

[a] DD means that the item is an element in the bean's deployment descriptor.

Get The J2EE™ Tutorial Second Edition 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.