Sun Microsystems Logo

 

 
 

Sun[tm] ONE Studio 4, Enterprise Edition for Java[tm] with Application Server 7 Tutorial
Packaging the Enterprise Bean in an EJB[tm] Module
PREV PREV NEXT

 

Although the test client automatically packaged your session bean in an EJB module, this module was specifically created for testing purposes. In this section you will package your session bean in a new EJB module that will be used as part of your enterprise application.

To create the EJB module:

1. In the Explorer, select the Filesystem tab. (You might need to click the GUI Editing tab of the IDE's menu bar to display the Explorer window).

2. Right-click the .../mysimple/src filesystem and select New -> J2EE -> EJB Module

3. Type jdbcSimpleEjb in the Name field.

4. Click Finish.

5. Right-click the new jdbcSimpleEjb EJB module and select Add EJB....

The Add EJB to EJB Module browser is displayed.

6. Select the GreeterDB (EJB) bean under the mysimple/src/samples/jdbc/simple/ejb node

7. Click OK.

The GreeterDB session bean is included in the EJB module. Expanding the jdbcSimpleEjb node shows the included session bean.

Now that you've prepared the EJB for assembly in an enterprise application, proceed to Creating the Web Application to create the web interface portion of the application.

PREV PREV NEXT