01.06.2013 Views

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: <strong>OpenEdge</strong> <strong>Mobile</strong> Overview<br />

Client access to the AppServer using <strong>Mobile</strong> services<br />

Figure 2 provides an overview of how an <strong>OpenEdge</strong> JSDO accesses a <strong>Mobile</strong><br />

resource, which works the same for a given JSDO regardless of the type of <strong>Mobile</strong> App.<br />

Figure 2: Accessing <strong>OpenEdge</strong> <strong>Mobile</strong> services and resources<br />

Each JSDO created by a <strong>Mobile</strong> App can access a single <strong>Mobile</strong> resource, which can<br />

be any of the <strong>Mobile</strong> resources provided by a particular <strong>Mobile</strong> service of the <strong>Mobile</strong><br />

Web application. A single <strong>Mobile</strong> Web application can support one or more <strong>Mobile</strong><br />

services, and an Apache Tomcat Web server can host multiple <strong>Mobile</strong> Web<br />

applications.<br />

In Figure 2, the <strong>Mobile</strong> Web application contains two <strong>Mobile</strong> services, Inventory and<br />

OrderEntry. The OrderEntry service contains two <strong>Mobile</strong> resources, Orders and<br />

Customers, which are implemented by the ABL class files Orders.cls and<br />

Customer.cls, respectively, and are accessed, respectively, by the Orders and<br />

Customers JSDOs on the client.<br />

Note: The breakdown of resources in the OrderEntry service is for illustration only.<br />

It implies that the two resources provide a single temp-table each, one with<br />

Order records and one with Customer records. In practice, these temp-tables<br />

might be related using a ProDataSet that is provided by a single <strong>Mobile</strong><br />

resource accessed by a single JSDO.<br />

Note that an <strong>OpenEdge</strong> <strong>Mobile</strong> Web application installs and runs in an Apache Tomcat<br />

Java container similar to an <strong>OpenEdge</strong> REST Web application, and can be managed<br />

using the same <strong>OpenEdge</strong>-supported tools. Likewise, an <strong>OpenEdge</strong> <strong>Mobile</strong> service is<br />

very similar to an <strong>OpenEdge</strong> REST Web service. The difference between them is in<br />

how a <strong>Mobile</strong> service makes resources available to a <strong>Mobile</strong> App.<br />

36 <strong>OpenEdge</strong> ® <strong>Development</strong>: <strong>Mobile</strong> <strong>Applications</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!