IBM Worklight Adapter Integration with SCA 1.1 services
Brief introduction
Considerations for use-case schemas
This article is based on several previous articles, using the same use cases developed in part 1th. The same programming artifacts are merged in the article. Be sure to read part 1th to familiarize yourself with the use case and the programming artifacts (or click More in this series).
In part 4th, you will learn how to get the Java application developed in part 1th, and use the Rational application Developer for WebSphere 8.5.1 Developer Workbench to create and test an SCA 1.1 service application. You will then learn how to merge this SCA 1.1 service application logic into a server-side mobile application that contains HTTP adapters. Finally, learn how to test the mobile application End-to-end.
Use Case Implementation method
The use-case implementation consists of 6 different activities, which can generally be grouped into the following steps:
Develop the SCA 1.1 service application in Rational application Developer.
Use the Rational application Developer to test the SCA 1.1 service application.
Package the SCA 1.1 Service application logic as a Java archive (. jar) for use by mobile applications.
Develop mobile applications using Worklight Studio.
Merges the provided SCA 1.1 service application logic into a mobile application as an SCA 1.1 service archive repository.
Test the mobile application in Worklight Studio by invoking the SCA 1.1 Service application logic developed in the previous steps and using Worklight Adapter. This constitutes an end-to-end test.
Develop an SCA application using Rational application Developer
The following steps list the process of developing an SCA 1.1 service application using the Rational application Developer for WebSphere, Version 8.5.1.
Start Rational application Developer and specify the workspace location on the file system:
C:\temp\RADWS\RADWSUsecasesSCA
If you have not already opened the Java Enterprise Edition perspective, open it (by selecting Window > Open Perspective > Other > Java EE (Default), and then click OK).
To create a new SCA1.1 service project:
Select File > New > Other > Service Component Architecture 1.1 > SCA 1.1 Project > Next to open New SCA project Wiz Ard
Enter the following information in the New SCA Project Wizard:
Project Name:radusecasesscaproject
Use default location Checkbox:check
Target runtime:websphere Application Server v8.5
Facet Configuration:websphere v8.5 SCA 1.1
Project Settings > Available Component Implementation Types > Composite:check
Project Settings > Available Component Implementation Types > Java:check
Click Finish (see Figure 1).
Figure 1. Start New SCA Project Wizard