Skip to Content
author's profile photo Former Member
Former Member

Convert the ESDMA Bundle into an Unwired Platform Package

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2012 at 10:22 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.