50 WCTME: Application Development and Case Study
3.3.1 Description
In this section we will create a simple bundle that contains the Customer class for
our sample application.
This bundle will be used by other bundles in the application, so it will expose the
Java class we will create.
We will also create another bundle to test the customer bundle.
The Customer Class
For our sample application, our Customer only has a few fields. These fields in
Example 3-1 will later map to database tables in Chapter 4, “Database” on
page 83.
Example 3-1 Customer class fields
String contractID = "";
String customerID = "";
String firstName = "";
String lastName = "";
String flightInfo = "";
String currentStatus = "";
String vehicleLocation = "";
3.3.2 Procedure
In each chapter where we develop a portion of the sample application we will
include the steps necessary to create that bundle.
The completed bundles are available for download from IBM if you do not want to
complete the steps manually. See the Additional Material section for more
information.
Each chapter does build on the previous chapter, and some screen shots are not
duplicated in future chapters, so it might be necessary to look to previous
chapters for complete examples of each step.
First we need to create a Bundle Project to hold the Customer class.
1. If WebSphere Studio Site Developer is not running, click Start Programs
IBM WebSphere Studio Site Developer 5.1.x.
2. Open the SMF Perspective. Select Window Open Perspective SMF.
See Figure 3-2 on page 51.
Chapter 3. Service Management Framework Runtime 51
Figure 3-2 The SMF Perspective
3. Make sure you are on the Package Explorer tab. Select File New
Other.
4. Select Extension Services Extension Services Bundle Project and
Click Next. See Figure 3-3 on page 52.
52 WCTME: Application Development and Case Study
Figure 3-3 Creating a new Bundle
5. Enter the Project name ITSOCustomerBundle and click Next. See
Figure 3-4 on page 53.
Chapter 3. Service Management Framework Runtime 53
Figure 3-4 Selecting platform profile and application services
54 WCTME: Application Development and Case Study
6. In the Platform Profile field choose Extension Services: jclFoundation
(5.7.0.).
7. For this bundle we will not be using any additional application services. Click
Next.
8. In later bundles we will reference this project. Click Next.
9. Because this is a very simple bundle, we will not need a Bundle Activator, so
leave that field empty. The other choices on the panel control whether Studio
should manage some other settings for you. See the help documentation for
more information. Click Finish.
10.If you see a panel indicating the folder has changed (Figure 3-5), click Yes.
Figure 3-5 Build Path Warning
You have just created an empty Bundle. Now we will add the Customer Java
class.
11.See Figure 3-6 on page 55. From the Package Explorer tab of the SMF
Perspective, select the ITSOCustomerBundle Project you just created and
right-click. From the pop-up menu select New Package.

Get IBM Workplace Client Technology Micro Edition Version 5.7.1: Application Development and Case Study 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.