Java Reference
In-Depth Information
Figure 11.10 The Code Style dialog has a tab dedicated to defining the naming conventions
for your J2EE implementations, which helps ensure consistency.
asynchronous requests, and Entity EJB s can handle various data and data ser-
vices with no need to run a specific database application. As an example, you'll
create two EJB s: a CMP Entity bean (an Entity bean to quickly restore the data-
base data without manual SQL coding) and a Session bean.
You can create EJB s using the context menu in the Project view. Right-click an
EJB module there or press Alt+Insert , and select a necessary item under the New
submenu. Now, do the following:
Select a bean type ( CMP Entity or Session).
1
In the resulting dialog, shown in figure 11.11, specify the bean name,
package, bean class, and interfaces (local and remote).
2
Fo r CMP beans, set the primary key class and CMP version.
3
Editing EJB deployment descriptors
Like web modules, EJB modules and EJB s have deployment descriptors. Deploy-
ment descriptors are essential for the deployment process success. Without the
properly configured deployment descriptor, an application server doesn't know
what to do with files you provide. The deployment descriptors are automatically
created by IDEA and shown in a graphic way. For instance, suppose you need to
add security roles, change classes/interfaces for EJB s, and so on. Changes you
 
Search WWH ::




Custom Search