cancel
Showing results for 
Search instead for 
Did you mean: 

Convert the ESDMA Bundle into an Unwired Platform Package

Krishneel
Participant
0 Kudos

Hi,

Does anyone have an example sup-db.xml file for an Android application that I could refer to? I'm unsure as to what goes in the database name and database-class name fields. The description in the documentation I have seen so far is unclear:

<package name="EXAMPLE" short-name="EXAMPLE" sup-name="EXAMPLE" version="1.0"

    java-package="com.sybase.example.db" /* For Blackberry or Application */

    cs-namespace="Sybase.Example.db" /* For Windows Mobile Application */

    oc-namespace="example_db_"> /* For iOS Application */

  <!-- Update with new host and port, listener.url must end with /doe/publish. -->

  <property name="listener.url" value="http://<Unwired_Server_host>:<listener_port>/doe/publish" />

  <database name="example-database" />

  <database-class name="ExampleDatabase" />

  <personalization-parameter name="language" type="string" owner="client" />

   <include file="afx-esdma.xml" />

</package>

  • example-database – replace with the name of the required database file.
  • ExampleDatabase – replace with the name of the required database class.

Thanks,

Krishneel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krishneel,

Say the name of your application/ESDMA is XYZ. The database name should be XYZ-database and the database class name should be XYZDatabase. This will be the name of the application database file that will be generated when you perform the codegen, these files will be used in your client application. Make sure the name does not contain spaces or this could reult in deployment errors. Here is an example of sup-db.xml for android application:

-       <package name="XYZ" short-name="XYZ" sup-name="XYZ" version="1.0" java- package="com.sybase.XYZ.db" cs-namespace="Sybase.XYZ.db" oc-  namespace="XYZ_db_">

    - <!--  Update with new host and port, listener.url must end with /doe/publish --> 

        <property name="listener.url" value="http://10.66.186.47:8000/doe/publish" />

        <database name="XYZ-database" /> 

       <database-class name="XYZ_CLASS" />

       <personalization-parameter name="language" type="string" owner="client" /> 

       <include file="afx-esdma.xml" /> 

        </package>

    

Hope this helps!

Regards,

Sankeerthana P