In the Import Project dialog box, accept the defaults
and click Finish.
To run the program:
Ensure there are no errors listed in the Problems view.
From the Servers view, start the WebSphere Application
Server instance. This sample will run on IBM® WebSphere® Application Server v7.0.
In the Enterprise Explorer view, select the AddressBookEJBEAR project, right click, and select Properties. Click on Targetted Runtimes, select a runtime,
and click OK.
Expand the AddressBookEJB > Deployment Descriptor:
AddressBookEJB > Entity Beans directories. Right-click the AddressBook bean, and select Run As > Run on Server.
In the Run ON Server wizard, select the previously started
server instance and click Next.
Once the Universal Test Client window opens, click on
the JNDI Explorer link on the left. If a Universal
Test Client window does not open, in the Servers view, right-click
the server and select Run universal test client.
Expand the ejb > ejbs directories, and click
on AddressBookHome.
AddressBookHome will appear under EJB Beans on the left of the screen. Click on the plus sign next to AddressBookHome
to expand.
A Create method will be listed underneath AddressBookHome.
Click Create to bring it up in the Universal
Test Client window on the right of the screen.
Click Invoke, and then click Work with Object. AddressBook will appear under AddressBookHome.
Expanding that menu will display the different methods that you can
work with.
To explore the sample:
Expand the AddressBookEJB project.
Expand the ejbModule directory, and the ejbs package.
Double-click on AddressBookBean.java to view the code.