Palm Database access via Midlet application

Hi.
I'm trying to access a Palm database from within a Midlet application for the Palm.
Is there a Java API that I can upload onto my Palm which will give me access to the Palm database ?
Regards,
Matt
P.S. Here's what I've tried already.
I cannot get hold of the KVMUtil.prc, nor it's associated SDK. It seems like it has been replaced by the MIDP SDK.
RMS is the only database access provided in the MIDP suite, described in the following article :
http://developer.java.sun.com/developer/technicalArticles/wireless/midpdatabase/
This is too generic for me - as it should be - midlets are supposed to run on more than just Palm devices.

Hi Matt:
I'll address your 5 major areas 1 at a time. This is only my opinion, only you can decide what will work best for you.
Sun may have stated the Kjava API is not officially supported. However, Sun has enhanced the Kjava API since its initial release.
1. I'm trying to access a Palm database from within a Midlet application for the Palm.
What I'm doing is treating the com.sum.kjava classes as an add on package, using the JAR tool to include these classes prior to building the .PRC.
2. Is there a Java API that I can upload onto my Palm which will give me access to the Palm database ?
Yes, it is part of the j2me_cldc installation, see below. It will allow you access to any PDB on the Palm. Like Palm address, memo etc.
3. I cannot get hold of the KVMUtil.prc, nor it's associated SDK. It seems like it has been replaced by the MIDP SDK.
When a developer downloads and unZips the most recent versions of the two j2me files:
j2me_cldc-1_0_2-fcs-winunix.zip
j2me_cldc-1_0_2-fcs-kjava_overlay.zip
the following directory structure is created
c:\j2me_cldc\bin\common\api\classes;
-- j2me_cldc
-- bin
-- common
-- api
-- classes
-- com
-- java
-- util
-- javax
-- microedition
-- io
etc.
As of 05/01/2001 the KVM.prc and KVMUtil.prc existed here: c:\j2me_cldc\bin\kjava\palm\
When a developer downloads and unZips the most recent version the file:
j2me_cldc-1_0-fcs-bin-b10-win-15_sep_2000.zip
the following directory structure is created
c:\midp-fcs
-- classes
-- java
-- util
-- javax
-- microedition
-- io
-- lcdui
etc.
When a developer downloads and installs the most recent version the file:
j2me_wireless_toolkit-1_0_2-ea-win.exe
the following directory structure is created:
c:\J2MEWTK
--bin
midpapi.zip
etc.
Three places to get the MIDlet classes each class has a different creation date too. I've installed the classes oldest to newest in my development environment.
Check you classpath. I've created a setup.bat to configure the classpath.
4. RMS is the only database access provided in the MIDP suite, described in the following article:
No. It is one of two options, RMS and Kjava Database. However, it may not be a option for a Palm if the RMS Database cannot be created on a server and then HotSync'ed to a Palm. A Palm app would be pretty useless if we cannot instantiate its databases with data.
5. This is too generic for me - as it should be - midlets are supposed to run on more than just Palm devices.
I agree, that is why I have not stopped using the Kjava Database objects. I've written a server-side Palm Database API the will convert data from any source into Palm PDB's. These PDBs are then HotSync'ed to the Palm. A Palm app would be pretty useless if we cannot instantiate its databases with data.
Matt, let me know if this helps.

Similar Messages

  • Database Access via ODBC

    Hi,
    Since recent (LMS3.2) Cisco released the Open Database Schema support. In the guidelines I find info/procedures to access the database remotely via ODBC. However only Solaris/Solaris Windows/Windows is described. Is there any info how I can access the Database (LMS installed on Sol10) remotely via a Windows system ?
    Jan

    The instructions for Windows/Windows apply, but you'll need to first get the necessary DLLs to allow for database access. The easiest way to do this would be to install Common Services from the LMS 3.2 DVD on a Windows 2003 or 2008 machine. Then extract the DLLs, and uninstall Common Services.
    It may also be possible to start the installer, have it extract the install bits to the TEMP location, then you can pull the DLLS from there. However, I have not tried this for obtaining database DLLs (only device packages).

  • Command Window Database Access via a DataSource

    Hi.
    I've succeeded in accessing a MySQL database via a DataSource from a servlet that makes use of a DAO. However, I would now like to use the same DAO to access the database from a standalone, command window program.
    The error that I am getting is "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial". This error is generated by the second of the following two lines in the DAO:
    Context initialContext = new InitialContext();
    Context context = (Context)initialContext.lookup("java:comp/env");
    Is there any way in which I can get a standalone program to make use of my server.xml and web.xml DataSource mappings to access the database??
    Any help would be most appreciated.
    Thanks in anticipation.
    Jan

    The error that I am getting is
    "javax.naming.NoInitialContextException: Need to
    specify class name in environment or system property,
    or as an applet parameter, or in an application
    resource file: java.naming.factory.initial". This
    error is generated by the second of the following two
    lines in the DAO:
    Context initialContext = new InitialContext();
    Context context =
    (Context)initialContext.lookup("java:comp/env");
    The error itself suggests some solution to you. You need to specify the environment variables in the parameter to the InitialContext constructor. something like this...
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    Context context = new InitialContext(env);Cheers!
    ***Annie***

  • Remote database access via JDBC?

    Hello,
    Can anyone give me info on accessing remote databases (i.e. Microsoft
    Access, etc) from Java programs (Servlets, JSP's, Classes) residing on the
    iSeries (AS400) or perhaps any platform?
    I currently have a couple of web applications set up on the Websphere App server that access DB2/400 database and I also have some Java Classes on PC's that access MS Access datafiles. I would like to begin writing the majority of my applications that run on the iSeries (or host system) that can remotely access other databases on our network.
    Any info would be of great help to me.
    Thank you
    Don

    I don't know of any existing Access JDBC drivers that support remote access, after all, the Access database itself is not remote access capable except via file sharing. One possibility is to look for a Type 3 JDBC driver that supports reuse of other Type 1 (ODBC bridge), Type 2 (Java/Native Mix) and Type 4 (pure Java)JDBC drivers on the server side.
    If you were using WebLogic Server, I suppose you could use its remote JDBC facilities, but that won't help you.
    One problem you will have to face is that Access JDBC drivers are not (if I recall) meant to be used in a multithreaded fashion. Good luck. By the way, it might be far simpler to port the Access database to DB2/400.
    Chuck

  • Command Window Database Access via a DataSource (Pt 2)

    Hi.
    For those of you (especially duffymo) who were good enough to make suggestions concerning my problems when attempting to access an Oracle 10g database via a DataSource from a servlet the week before last, I'm pleased to say that I got that working on my return from holiday!
    Now to return to an earlier problem...
    I'd like to access the same database from a standalone, command window program and have tried setting the INITIAL_CONTEXT_FACTORY and PROVIDER_URL properties as shown below.
    Hashtable envt = new Hashtable();
    envt.put(Context.INITIAL_CONTEXT_FACTORY,
    "org.apache.commons.dbcp.BasicDataSourceFactory");
    envt.put(Context.PROVIDER_URL, "http://localhost:8080");
    Context initialContext = new InitialContext(envt);
    Context context =(Context)initialContext.lookup("java:comp/env");
    DataSource dataSource =(DataSource)context.lookup("jdbc/Oracle_Finances");
    connection = dataSource.getConnection();
    However, this generates error messages with root exception "java.lang.ClassNotFoundException: org.apache.comons.dbcp.BasicDataSourceFactory".
    If I copy the JAR file containing BasicDataSourceFactory (viz. commons-dbcp-1.2.1.jar) from Tomcat's common\lib folder into Java's jre\lib\ext folder, then I get a similar set of error messages, but the root exception changes from ClassNotFoundException to "java.lang.ClassCastException: org.apache.comons.dbcp.BasicDataSourceFactory".
    Does anybody know where the problem lies??
    Any help most appreciated.
    Cheers.
    Jan

    I'd like to access the same database from a
    standalone, command window program and have tried
    setting the INITIAL_CONTEXT_FACTORY and PROVIDER_URL
    properties as shown below.I've never done this. I'm not sure if it can or should be done.
    The problem is that the standalone app isn't part of any Tomcat context.
    It also ties your standalong app to Tomcat. I don't think you want to do that.
    There's got to be a way to manage this without resorting to Tomcat. I'd look at the Commons docs to see.
    If I copy the JAR file containing
    BasicDataSourceFactory (viz. commons-dbcp-1.2.1.jar)
    from Tomcat's common\lib folder into Java's
    jre\lib\ext folder, This is a terrible idea. You shouldn't be putting anything in jre/lib/ext - it'll cause more problems than it's worth.
    Create a /lib directory for your project and put the 3rd party JARs in there. Disk space is cheap, and keeping all the artifacts that you need to create your app in one place is a good idea.
    %

  • Database Access via a Servlet

    Hello
    I have the following Servlet code:
    package server;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.PrintWriter;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.SQLException;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class ServletDB extends HttpServlet {
       private static String URL= "jdbc:microsoft:sqlserver://localhost:90;" +
         "DatabaseName=Filme;User=sa;Password=";     
      // GET handles the 'read' action
      protected void doGet(HttpServletRequest request,
                           HttpServletResponse response) throws IOException {
        PrintWriter out = response.getWriter();
        String action = request.getParameter("action");
        if (action == null) {
          out
            .println("You need to specify 'create' as the action parameter in GET.");
          return;
        if (action.equals("read")) {
          readDB(request, response, out);
        } else {
          out.println(action + " is not a valid action parameter.");
        return;
      public void doPost(HttpServletRequest request,
                         HttpServletResponse response) throws ServletException,
                         IOException {
        doGet(request, response);
      private void readDB(HttpServletRequest request,
                          HttpServletResponse response,
                          PrintWriter out) throws IOException {
        Statement stmt = null;
        ResultSet rs = null;
        Connection con = null;
        try {
          Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
          con= DriverManager.getConnection(URL);       
          stmt = con.createStatement();
          rs = stmt.executeQuery("SELECT * FROM Voturi");
          // Read the data, a line at a time
          boolean hasEntries = false;
          while (rs.next()) {
            hasEntries = true;
            out.println(rs.getString("nume_film") + "," + rs.getString("nr_voturi")
                        + "," + rs.getString("an_de_productie"));
          if (!hasEntries) {
            out.println("database is empty");
          stmt.close();
          con.close();
        }catch (SQLException sqle) {
          out.println("Data not fetched. Check the stack trace!");
          sqle.printStackTrace();
        }catch (ClassNotFoundException cnfe) {
          cnfe.printStackTrace();
        }catch (InstantiationException instantiationException) {
          instantiationException.printStackTrace();
        }catch (IllegalAccessException illegalAccessException) {
          illegalAccessException.printStackTrace();
      // Get Servlet information
      public String getServletInfo() {
        return "server.ServletDB Information";
    }When I run this servlet I get a blank page instead of the requested information and I can't figure why?My database connection part of this program works because I tried it with a J2SE application. I have just started working with servlets so the answer might be simple but I just can't see it.
    Please help
    Regards,
    Michael

    Hello jSweep.
    Thank you for the reply.
    I put the jar files in the lib directory and run the servlet again. I got the following message: 'Data not fetched. Check the stack trace!'. I have no clue how to check the stack trace. Please help if you know how.
    Regards,
    Michael

  • Database Access via WLS Datasource

    I need to access a database resource by JNDI Datasource lookup and not by JDBC Direct Connection. This is needed because the underlying database is an Oracle RAC with several machines and my intention is to use WLS MultiDatasource Feature to round-robin and failover all the database needs.
    Could someone help me ??
    Thanks in advance

    I'd like to access the same database from a
    standalone, command window program and have tried
    setting the INITIAL_CONTEXT_FACTORY and PROVIDER_URL
    properties as shown below.I've never done this. I'm not sure if it can or should be done.
    The problem is that the standalone app isn't part of any Tomcat context.
    It also ties your standalong app to Tomcat. I don't think you want to do that.
    There's got to be a way to manage this without resorting to Tomcat. I'd look at the Commons docs to see.
    If I copy the JAR file containing
    BasicDataSourceFactory (viz. commons-dbcp-1.2.1.jar)
    from Tomcat's common\lib folder into Java's
    jre\lib\ext folder, This is a terrible idea. You shouldn't be putting anything in jre/lib/ext - it'll cause more problems than it's worth.
    Create a /lib directory for your project and put the 3rd party JARs in there. Disk space is cheap, and keeping all the artifacts that you need to create your app in one place is a good idea.
    %

  • Database access via Jdbc  in JSP

    Hey guys,
    Need a help here..I want to compare a data to existing data in a table sequencially.
    1)re is the example, if i have a user login prog,i want to compare the user already exists in that data table.
    if so how can print the user id's to compare?
    and 2)at if the user id is a wave file(binary data) in SQl? since its immposible to compare the binary data?
    keep me posting,thanks

    1. Well, perform a query.
    2. Who says you can't compare "binary" data?

  • AL11 DIR excess Issue via BSP application link.

    Hi Folks,
    I am struggling with a ERROR while Accessing path of AL11 via BSP program.
    BASIS POV :
    Created a DIR and configure for Instance type ALL.
    The User who is accessing have full access for AL11 with Auth_Obj. S_DATASET (full access)
    RFC user has full access in S_RFC and S_RFCACL.
    Full access (777) given to the Dir created in AL11.
    PROBLEM :
    Abaper done coding and tested in DEV system program and codding working fine. while accessing via BSP application it should create a file in AL11 created path. and it's working in Development server.
    when they change the path of AL11 in the program as per production server and transported to Production and working with the BSP application it's throughing ERROR.
    Please find attachment of bmp file for the ERROR.
    NOTE : when application connect via Instance 00, everything working fine, but when application connect via Instance 01 we are getting this ERROR.
    QUERY : is there any workaround, can we redirect this to only instance 00 by any hard coding/ or by calling any Background JOB or any.
    Regards,
    Sandeep Meher

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Trouble accessing a database in a deployed application

    I am having difficulty accessing a database on a deployed application.  I am using LV2009, and Windows XP.    I am interfacing with the database via ODBC.  The database is located in the "Shared Documents" folder.  I have no problem accessing the database when logged in as the administrator, but when i use the production login I cannot get to it (I can see it in explorer).  I have given the production login administrative privileges and still cannot access it.  I can save a notepad file to that folder when using the production login.  What do I not have set properly in the database setup?
    Thanks in advance.
    Jim
    Jim
    LV 2013

    Sorry I got the error code mixed up!
    // MessageId: DB_E_CANCELED
    // MessageText:
    //  Operation was canceled.
    #define DB_E_CANCELED                    ((HRESULT)0x80040E4EL)
    This would indicate that there was some operation like a login dialog or similar that was canceled. It could be that you have assigned a username and passowrd in Access to the database file. In that case you do need to specify the correct username and password in the DSN connection settings otherwise the ADO/ODBC driver wants to prompt you with a dialog for this information, but this has to be enabled with the "prompt? (f)" input to the DB Open Connection method. If that parameter is false, all the ADO library can do is to abort the connection.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • Getting error "Access via null" when running the web dynpro application

    Hi experts,
    I am getting the below error while executing my web dynpro application
    500 SAP Internal Server Error
    ERROR: Access via 'NULL' object reference not possible. (termination: RABAX_STATE)
    I am getting the error only when I am calling a method create manufacturer from my web dynpro program. If i comment this code my application works fine
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
      EXPORTING
        gi_manufacturer = ls_manufacturer
      IMPORTING
        lv_message      = lv_status
    i have created a attribute mo_ch_instance of type YSRM70CL_CH_SW_MD  where YSRM70CL_CH_SW_MD is the class which has the create_manufacturer method that i am using in my code.
    Kindly let me know whats the issue.
    Regards,
    Vinod

    Hi,
    if   wd_this->mo_ch_instance is not initial.
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
    EXPORTING
    gi_manufacturer = ls_manufacturer
    IMPORTING
    lv_message = lv_status
    endif.
    Check wether you have created the object for that class r not.
    Regards,
    Lekha.

  • Web Dynpro application accessed via internet?

    Hallo
    We should develop one Application, but it should be accessed via internet. Our Personal System and Material System ist from SAP. Thus we want to did the GUI in Web Dynpro for Java.
    I'm not sure if the WD runs on internet? And ist it ture that SAP only good for the intranet application? Have you any example to solve the problem such as authentication and autorisation for the service (using adaptive Web Service)?
    Thanks a lot and
    Nice regards
    ping

    WD Java Apps can be accessed outside Intranet for example companies expose their ESS/MSS applications(WD Java apps) on the internet for their employees and managers.   However you need to check for browser compatitbilty depending on the Portal SP level you are using.  WD Java many not be supported by all browsers and versions. 
    Hope this helps
    Siva

  • Database design for Role/User based access to the application..

    We want to implement Role/User based access to the application.
    Can anyone tell me whats the optimized way of storing the data {User, Role, Access_Type etc} in the database.. The Roles might get added in the future so i dont want to maintain a single table to map User-Access_Type..
    Access_Type -->
    AT_1 | AT_2 |AT_N |
    ------- |------- |------- -|------|
    User_1 | | | |
    ------- |------- |--------|------ |
    User_2 | | | |
    ------- |------ -|--------|------ |
    I want to maintain a table which will map user with the Access_Type, which should be mainatained in a different table..
    Any help would be highly appreciated..
    Thanks in Advacnce,
    Shridhar..

    You find your answer here:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html

  • BSP application access via internet

    hi all,
    has any one implemented Bsp application which is accessed via eportal on the internet ,
    i have a application which works fine on the intranet , but it does not work when accessed via the internet .
    What could be the reason?
    REgards
    sameer

    to access your BSP from internet your app server from where BSP runs has to be exposed to internet (DMZ). you should talk to your system admin guys to set it up
    Raja

Maybe you are looking for