144 WCTME: Application Development and Case Study
The test bundle and any bundles it requires are installed into the runtime and the
bundles are started. The output of the test bundle displays in the SMF runtime’s
console.
Review the output of the tester program in the console and verify that the tester
bundles were able to access the messaging service in stand-alone mode.
5.4 Creating the MQe Server
The MQe server (Transponder) is the server side of the MQe messaging system.
In a real application, it would look up the slot number for the customer. In our
application, it generates a random slot number.
The server receives the messages from the client. The message includes the
contract ID as well as the return address information. It builds a message and
sends it to the remote queue. The message resides on the store and forward
queue until the client retrieves it.
1. Make sure you are on the Package Explorer tab. Select File New
Project Java Java Project. Click Next. See Figure 5-6 on page 145.
Chapter 5. Messaging 145
Figure 5-6 Creating a new Java Project
2. As in Figure 5-7 on page 146, enter the name ITSOMQeServer, then click
Next.
146 WCTME: Application Development and Case Study
Figure 5-7 Naming the new Java Project
3. On the Java Settings panel (Figure 5-8 on page 147), select the Libraries
tab, then Add External Jars...
Chapter 5. Messaging 147
Figure 5-8 Adding External Jars files to a project
4. Navigate to the ESWE technologies bundlefiles directory (C:\Program
Files\IBM\DeviceDeveloper\wsdd5.0\technologies\eswe\bundlefiles) and
select MQeBundle.jar then click Open. See Figure 5-9 on page 148.
148 WCTME: Application Development and Case Study
Figure 5-9 Selecting the MQeBundle jar file
5. Click Finish. If you get prompted to change to the Java Perspective, select
Yes.
The ITSOMQeServer project is created. Now we will add some code to the
project. See Figure 5-10 on page 149.
6. Create a new package called com.ibm.wctme.host.
7. Create a class called MQeTransponder. Be sure to include a main method.
MQeTransponder should implement the MQeMessageListenerInterface
interface.

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.