Exercise 1.1: Importing the required resources and building the required projects
Enabling Web service capabilities
To enable the capabilities required for Web services development:
- On the Welcome page, check to see if Web services are enabled by looking for
the Web services icon in the lower right-hand corner:
.
If the Welcome page has been closed, you can reopen it from the Help menu.
- If Web services are not enabled, select the icon in the lower right corner
that looks like a person. This will generate a list of capabilities that you can
select from.
- Select the Web services icon in the top left corner:
The tools used in Web services development are now enabled.
Importing the EAR file
To
import the EAR file, follow these steps:
- From the File menu, click Import to open the Import
wizard, then select EAR file and click Next.
- Enter the following file in the EAR File field. You can click Browse to locate and select the file:
com.ibm.etools.webservice.buejb.tutorial.doc\resources\JMSEAR.ear.
This plugin is located in the directory where you installed the Rational
Developer product in the rad\eclipse\plugins folder.
- In the EAR Project field, type JMSEAR if it is not
already prefilled.
This is the Enterprise Application project which you will import the EAR file
into. The project will be created when you complete the wizard.
- Ensure that the target server selected is WebSphere Application Server v6.0.
- Click Finish. The Enterprise Application project,
JMSEAR and the EJB Module, JMSService are created.
In the J2EE perspective under the EJB Projects folder, notice JMSService. This project contains all the resources for EJB applications, including the enterprise bean, the remote interface, and EJB home.
The JMSServiceRouter project has also been created. This is an EJB project that
will contain the message router message-driven bean for the Web service.
Now you are ready to begin Exercise 1.2: Creating a server and server configuration for JMS.