IBM Worklight v5.0.5 > Develop IBM Worklight applications > Development guidelines for using native API

Application Descriptor of Native API application for Java ME


The application descriptor, application-descriptor.xml, for Native API applications for Java ME:

<?xml version="1.0" encoding="UTF-8"?>

<nativeJavaMEApp id="JavaME"
                 platformVersion="5.0.5"
                 version="1.0"
                 securityTest="security test name"
                 xmlns="http://www.worklight.com/native-javame-descriptor">

    <displayName>application display name</displayName>
    <description>application description</description>

</nativeJavaMEApp>

The <nativeJavaMEApp> element is the root element of the descriptor. It has three mandatory attributes and one optional attribute:

id ID of the application. Must match application folder name. Alphanumeric string that starts with a letter. Can contain underscore ("_") characters. Must not be a reserved word in JavaScript.
platformVersion Version of the IBM Worklight Platform on which the app was developed.
version Version of the application. String of the form x.y, where x and y are numbers. Visible to users who download the app from the app store or market.
securityTest Security configuration defined in authenticationConfig.xml. When a client attempts to access a protected resource, IBM Worklight checks whether the client is already authenticated according to the security test. If the client is not yet authenticated, IBM Worklight starts the process to obtain the client credentials and to verify them. Optional.

Do not use this optional attribute. Java ME does not support authentication or security checks. Using this attribute might result in issues when you connect to WL server.

<displayName> Application name. Visible in the IBM Worklight Console. Copied to the descriptor files of various web and desktop environments.
<description> Application description. Visible in the IBM Worklight Console. Copied to the descriptor files of various web and desktop environments.


Parent Development guidelines for using native API





+

Search Tips   |   Advanced Search