Using IBM Worklight for server-side mobile application development (i)

Source: Internet
Author: User
Tags define file system mixed web services dojo toolkit websphere application server

Integration of IBM Worklight adapters with Java business logic

Brief introduction

IBM Rational application Developer for WebSphere Software Version 8.5.1 iFix1 facilitates Java, Java Enterprise Edition (JEE), Web 2 .0. Rapid development, testing, and operational deployment of mobile, OSGi, portal, and service-oriented architecture (SOA) business applications. For mobile application development, it contains some productivity features that deal with HTML 5, CSS3, JavaScript, Dojo Toolkit, and JavaScript Object notation (JSON) programming structures. It also seamlessly integrates the IBM WebSphere application Server programming model and the supported Run-time environment.

The IBM Worklight platform facilitates rapid development, testing, and delivery of mobile applications across Android, IOS, BlackBerrys, and Microsoft Windows Metro mobile operating systems in a platform-independent, vendor-agnostic manner. It contains the following components:

Worklight Application Center

Used as an enterprise application store to retain mobile applications and share mobile applications among architects, developers, testers, and users throughout the organization.

Worklight Console

Use the browser user interface to manage mobile applications and adapters.

Worklight Server

A mobile application for testing and deploying development.

Worklight Device Runtime Layer

Running on mobile devices, such as smartphones and Tablet PCs.

Worklight Studio

Used to develop native, mixed, and standard WEB mobile applications. It supports the flexibility to develop mobile applications that meet tailored conditions, including native, mixed, or WEB programming models. It also supports the development of server-side mobile components, which are typically deployed on top of the worklight server, in any supported IBM WebSphere Application Server configuration file (Liberty, Base, and network Deployment) on the run.

In this article, you will learn how to use the Rational application Developer for WebSphere 8.5.1 iFix1 Developer Workbench to develop and test a Java application. You will then learn how to develop and test a mobile application that contains a server-side adapter component that uses a previously developed Java application. The IBM worklight Framework supports the development of server-side components to invoke business logic encapsulated in Java, Web services, REST services, and Enterprise JavaBean (EJB) components.

Use case architecture

In this example based on fictitious customer requirements, you need to develop a Java application using the Rational application Developer for WebSphere Workbench and test this in the WebSphere application Server 8.5.0.2 the application running on the Run-time instance. Customer demand calls for the development and deployment of applications to be extended to smartphones and tablets, leveraging developed or deployed business logic, rather than re-inventing ("eliminate and replace") by extending and transforming policies. These requirements define two concepts labeled UseCase and usecases:

UseCase

This is an encapsulation of the necessary mobile application features, representing the client, server, and middleware aspects of the application. The lines in Figure 1 represent the usecase concept.

Usecases

These are encapsulation of a collection of possible instances or concepts of a use case. Figure 1 shows the 9 possible combinations of usecase instances. This table represents the Usecases concept in this article.

Figure 1. Encapsulation of usecase and usecases requirements

In your Java application, two interfaces are defined to capture customer requirements: One represents the UseCase concept and the other represents the usecases concept. You define the implementation of these two interfaces and also define an additional class to catch any type of exception or error that your logic might encounter. Table 1 summarizes the Java application development artifacts that you plan to develop in Rational application Developer and then deploy and test on the WebSphere application Server.

Use Case Implementation method

The use-case implementation consists of 6 different activities, which can generally be grouped into the following steps:

Develop a Java application using Rational application Developer.

Test the Java application using the Rational application Developer.

Create a Java application logic package in the form of a Java archive (. jar file) for use by mobile applications.

Develop a mobile application using Worklight Studio.

Merges the Java application logic provided in the form of a Java archive library into a mobile application.

Use worklight Studio to test the mobile application or treat it as an end-to-end test of the full scenario.

Developing a Java application using Rational application Developer

The following steps list the process of performing Java application development 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\WSUsecasesJavaProject

If you have not already opened a Java perspective for Java application Development, open it (it is in Window > Open perspective > Other > Java), and then click OK.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.