Can midlet directly access a database?

I'm creating a midlet that connects to a database. Do i need to go through a server and then access the database or can i directly access the database through the midlet?
Does anyone have a sample code that have a midlet interacts directly with a database? Or is it impposible to do so without going through a web server.
Blaise,

Your message arrived at the rigth address :)
I am experienced in J2ME programming and made several projects with it including my graduation thesis . (you can check http://2m.turkmenweb.com for my J2ME projects).
You can directly acces from MIDlet DB, but it is not so reccomended, since mobile devices have certain limitations. When we had to use DB in our J2ME projects(with MIDP1.0 and MIDP2.0) we achieved it by collaboration of JSP with our MIDlet.. That is MIDlet was only sending a URL to Tomcat Server (JSP server) i.e. http://someurl.com/show?task=topusers, and this URL was parsed by a Servlet which was making all needed conenctions to DB.
I also know that there are K editions (very small) of DBMS built especially for mobile devices. You can use them also .. I guess Oracle has such a thing..
Good luck!
Muhammed Mamedov
[email protected]

Similar Messages

  • Can we directly access database by using BI Accelerator ?

    Hi Experts,
    I have several question about BIA NetWeaver2004:
            1. Can we directly accessing database by using BIA?
            2. What is advantage and disadvantage of BIA? Why'd some people rather use BIA than Aggregates?
            3. Could anyone show me the example or demonstration about BIA
    I am a newbie in BI, so please give me information about BIA.
    Thanks a bunch.

    Hi,
    Welcome to SDN. Remember the rule --- before posting, you should search the forum first.
    1. Can we directly accessing database by using BIA?
    ---> No.
    2. What is advantage and disadvantage of BIA? Why'd some people rather use BIA than Aggregates?
    --> search SDN
    3. Could anyone show me the example or demonstration about BIA
    --> search SDN
    Thanks...
    Shambhu
    Edited by: Shambhu Kumar Gupta on Mar 17, 2009 11:22 AM

  • WHY can't I access my database from an applet???????????

    The security code won't let my applet access its own database (from its own server)..
    I'm using getDocumentBase()
    to try and tell it that it is my own damn file..
    I keep getting :
    java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
    ...etc.
    This applet crap is really starting to piss me off. I can see why they came out with JSP.
    All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
    If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.

    The simple answer to your question is: Because of security concerns.
    The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
    The clean way is to make your applet talk to a servlet that talks to your database.
    If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs.

  • Logical database vs direct access of database table

    Hi
    I have created a FI report.    I am trying to get data from large FI tables like BSAK, BSEG, BKPF, RSEG.  eventhough there are 10 records as per my criteria, system is taking morethan an hour time even in background processing.  This may be becaz of lot of conditions that I am applying to filter the data.  But still trying to improve the performance
    For fetching data which is the better way for getting optimum performance of the report.
    a) directly fetching data from database tables
    b) using logical database collecting data into an itab
    regards,
    mallik

    Hi,
    If you are accessing the database tables more than once with different criteria then definetly it will take more time. In such case write only one Select statement on the table and get all the required data into an internal table and then process this internal table as per your logic.
    Use of LDBs is definetly faster but filter conditions might not match with your filter conditions. In such case direct access of database table is preferable but as i said in above paragraph.
    thanks,
    sksingh

  • Can I directly access BEX query from web version

    Hi expert,
            Can I directly access BEX query from web version ? I know we can access bex query from webi rich client.
    Many Thanks,

    Hi,
    Yes, you can access BEx query via BICS connection (OLAP Connection).
    In SAP BusinessObjects BI 4.0 you have multiple options to connect your SAP BusinessObjects BI client to your SAP NetWeaver BW system.
    Direct BI Consumer Services (BICS)
    SAP BusinessObjects BI 4.x Relational Universe (UNX)
    SAP BusinessObjects XI 3.1 OLAP Universe (UNV) used in a SAP BusinessObjects BI 4 environment
    Web Intelligence
    Yes
    Yes
    Yes
    SAP BusinessObjects Dashboards
    Yes
    Yes
    No
    Analysis, edition for Microsoft Office
    Yes
    No
    No
    Analysis, edition for OLAP
    Yes
    No
    No
    SAP BusinessObjects Explorer
    No
    Yes
    No
    SAP BusinessObjects Design Studio
    Yes
    No
    No
    Visual Intelligence
    No
    Yes (1)
    No
    Predictive Analysis
    No
    Yes (1)
    No
    Design Studio
    Yes
    No
    No

  • Direct Access to Database in JDeveloper 11g TP4@FusionWebApplication?

    Hi,
    i have added a Database (Application Resources --> Connection --> Database --> "myDB") to my Application. I can creat Business Components et cetera with the wizard... all works...
    Now I have a simple Java-Class and i want a access to one table in my Database... must i creat a new Connection like
    Connection c = DriverManager.getConnection("jdbc:oracle:thin:@" + host + ":" + port + ":" + sid, user, pw); (simple java-code)
    or is there a chance for direct access to "myDB"?

    If you just want the connection information raw, you could try something like:
    package test.model;
    import oracle.adf.share.ADFContext;
    import oracle.jdeveloper.db.adapter.DatabaseProvider;
    public class Class1 {
        public static void main(String[] args) throws Throwable  {
              DatabaseProvider cd = (DatabaseProvider)ADFContext.getCurrent().getADFConfig().getConnectionsContext().lookup("scott_local");           
              System.out.println("ConnURL= "+cd.getConnectionURL());
              System.out.println("Host = "+cd.getProperty(DatabaseProvider.HOSTNAME_CLASS_REFTYPE));
              System.out.println("Port = "+cd.getProperty(DatabaseProvider.PORT_CLASS_REFTYPE));
              System.out.println("SID = "+cd.getProperty(DatabaseProvider.SID_CLASS_REFTYPE));
              System.out.println("Username = "+cd.getProperty(DatabaseProvider.USERNAME_CLASS_REFTYPE));
              System.out.println("Password = "+cd.getProperty(DatabaseProvider.PASSWORD_CLASS_REFTYPE));
    }

  • Using TCL to Directly Access Forwarding Databases

    Please can someone tell me if this is even possible with a TCL script on IOS?
    Open a TCP / SSL control channel from the router to an external monitoring server to do the following:
    Reliably replicate the global routing table and VRF routing tables with all information, such as protocol, metrics, next hop, prefix, mask, VRF, etc.
    Poll the global routing table and VRF routing tables for changes and send real time updates when there are changes
    Encapsulate the information into XML so it can be decoded by the monitoring server
    I don’t want to scrape show commands as I don’t believe it would scale or be accurate enough. I’m not even sure if it’s possible to direclty access the forwarding databases (MPLS, routing tables, etc)?  Does TCL only work with CLI output?
    Thanks!
    Richard

    Thanks for your help Joseph. Are there any plans to pass VRF information in the routing detector?
    Are there any other detector subsystems or methods to directly monitor the routing processes? For example by using the Application Detector (event_register_appl) to subscribe to IOS subsystem events and bypass the built in detectors, or use Resource Detector (event_register_resource) to detect a state change?  Even when writing custom TCL scripts are we bound by the predefined event detectors or are there other ways of accessing IOS subsystems?
    I also wondered if it was possible to create an EEM / TCL resource tracker or counter tracker that tracks the routing tables for changes via SNMP. The problem here is I’m not sure if it’s possible to monitor the MIB for specific changes, then poll for that specific change, as opposed to doing a complete SNMP walk? For example, with a number of VRFs and hundreds of thousands of routes I just need to know when there has been a change, and report just that change.
    I could take the output from the Routing Event then SNMP poll the global routing and all the VRFs for that prefix. With a lot of route updates and lots of VRFs there would be a lot of unnecessary SNMP polling (and it probably wouldn’t scale).
    Regarding the SSL limitation it looks like it’s possible (from one of your previous posts) to perform an MD5 hash (maybe even SHA). Therefore I’d expect I can hash the XML payload in the TCP session.
    Thanks again!

  • I can not make Access repair database using built-in utility?

    Access 2013 reports that the file is not a database, and the data in the file are displayed via NotePad. Function "Database Utilities | Compact and Repair Database" does not work.

    The default SID for Oracle XE databases is:
    XE
    David Rolfe

  • How can java directly access DLL

    I have some DLLs that are either written in C or C++ ( no access to source code), I now need to access some objects from it. is there a quick way to do this? are there any libraries already developed to allow my java code to access the objects inside those DLLs directly?
    This is to convert some powerbuild code to java and the powerbuilder code is like this":
    OLEObject loo_test ;
    loo_test.connectToNewObject("AMS5.Almi);
    then it just uses loo_test to call the methods and get results
    AMS5 is the application name (there is actually an ams5.exe in the directly), and then a whole bunch of DLLs. I do not know which DLL is the code actually using..
    any help will be greatly appreciated!

    Clearly, at minimum, you need to know which DLLs contain the methods you're interested in. If you look at the JNA example below, it loads a Windows system DLL then contains 'beep', describes how to call it, then calls it. You will need to do something similar:
    * JNATest.java
    * Created on 24 August 2007, 12:12
    package com.sdl;
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    import com.sun.jna.Structure;
    import com.sun.jna.ptr.LongByReference;
    import com.sun.jna.win32.StdCallLibrary;
    /** @author amalcolm */
    public class JNATest
        // Windows XP kernel library
        interface Kernel32 extends StdCallLibrary
            void Beep(int frequency, int duration);          
        public static void main(String[] args)
               Kernel32 kernel32=(Kernel32)Native.loadLibrary("kernel32",Kernel32.class);
                for(int freq=10;freq<10000;freq*=2)
                    kernel32.Beep(freq, 5);
    }

  • Can users directly access aeronets configured as Bridges?

    Here is our scenario, We have two Aironet 1400's facing each other to extend our LAN btw two buildings
    One is configured as root bridge the other is non root bridge. I see an option in the GUI to
    configure as an Access Point. My question is- Does the fact that I have the aironets configured
    as bridges prevent unauthorized clients from accessing the bridges and thus our network?
    Are these bridges considered Access Points that a laptop can attach too?

    Hi Richard,
    If you do not want 802.11 clients on the bridge, leave the default Role in the Radio network value to bridge only mode. This allows only other bridges to communicate with the device.
    From this excellent Q&A doc;
    http://www.cisco.com/en/US/products/hw/wireless/ps441/products_qanda_item09186a0080094d01.shtml#ethernet
    Hope this helps!
    Rob

  • Can the SYSDBA access the database from anywhere?

    Hi, I have looked around the Internet for the answer to this question but couldn't seem to find anything. For example if I have a database which is going to be fragmented around a number of sites in the country will I be able to carry out database admin with the /as sysdba role?

    It is not clear what you mean by 'fragmented' I figure out you are talking about several databases geographically distributed with data replication among them. You can perform the dba role virtually anywhere in the planet, it is not a problem, you only need to configure the password file so you can connect with the sysdba role from anywhere.
    You should ensure the remote_login_passwordfile is set either to exclusive or shared and you have a valid password file. By default this was created by the dbca at database creation time, but you can create it manually with the orapwd utility.
    It is important to specify both, the OS and DB versions, since there are several tools that should be configured, such as isqlplus, enterprise manager, or simply sqlplus, depending on the ports you are planning to open.
    ~ Madrid

  • JSP, Struts preventing direct access

    In a web application using Struts framework
    how can the direct access via the .do link can be avoided. I want users to use the button to move to the next page and i dont want to allow the direct access via do link.
    and
    when one page is visited and some work is done there. Then the user
    goes to some other page and visits the previous page. However, in
    that case my form is not initialized. How can this problem be solved?

    You can't avoid the .do link altogether. I am assuming that you have two page. First with 1.do and second with 2.do and you don't want the user to go directly to 2.do.
    To overcome this problem, you can write the logic on the second page to redirect it back to the first page. If they have directly gone to 2.do. The difference between button and the direct access is that first one can be post or get and the second one will be get call. Pls let me know if you need more clarifications on this.
    Try creating the form bean of session scope. In this case what will happen that the formbean will have the data captured earlier .. I mean aprtial of the data and that you can retrieve and set it th enext time.

  • Application Security - Protecting the files from direct access

    I am working on my application. I have a Flex app that
    everyone will access but to do the work, I have it calling on
    several PHP files. The Flex app has a login system and only allows
    advanced functionality after login. This protects the Flex portion,
    but does not really account for the PHP side of things.... The PHP
    files do a variety of things, mostly SQL calls, but also run a few
    system commands.
    How do you set up the PHP files or use an htaccess file to
    only allow the Flex app to call the PHP files? I'd like to set it
    up so that the users can't directly access the PHP files. However,
    I'm sure the client workstation is still making the request when
    called by the Flex app, right?
    Has anyone done this? Does anyone have any thoughts or
    suggestions on this?
    Thanks,
    Chris

    Hi csawall,
    These are just some off the top ideas, you can extrapolate
    and create a solution that might work:
    Since the client has access to the data stream to/from the
    server, there is no way to guarantee that someone won't use some
    kind of sniffer program to find what file the flex app is talking
    to, but that doesn't mean that you can't obfuscate it as much as
    possible to make it not worth trying.
    One idea was to use a single index and use _GET to control
    what content is being served, using includes on the php side to
    serve the proper file/content.
    Since the content you are delivering I would assume requires
    authentication, you'll have a unique session ID to work in. While
    the actual php file could be accessed in real time if you watched
    the data stream, if the user is already authenticated, what diff
    does it make? Set up specific rules inside your php file, so that
    it must receive data using a specific protocol, one that you can
    obfuscate using crypt and base it on variables that are unique,
    such as SSID + date + time, etc. When you first authenticate with
    the server from the flex app, have the php login script return the
    required protocol rules back to the flex app that would be unique
    to the session. The _SESSION variables on the server would contain
    the unique protocol rules as well. This gives you server side
    control over talking to the flex app... then all you would need to
    do, if you wanted to keep a tighter lid on the access to your
    script, is just rotate the protocol from time to time.
    Add on top of this, script name obfuscation that you store
    server side and transfer only withing the validated session, such
    as e.g. fstrs4adadst4_somefile.php etc etc, where your randomized
    key is the prefix (or suffix whichever you prefer) of your index.
    Your code of course would use the current protocol keys to match
    the current index, and all you need do is control the .htaccess
    file so that it relays any $_somefile.php to the proper
    file/directory etc which would be a name that would never be
    revealed to the public, and only used inside your .htaccess file or
    on the server side itself.
    Taking it a step further, if you create some kind of pulsing
    authentication system using the above methods, you can rotate the
    keys fast enough, so that someone would have to work really hard to
    figure out the protocol to talk to your server
    Just my 2 cents...
    RFX

  • I can no longer access iTunes on my laptop.  Can I puchase music directly to my iPad?

    My laptop is missing a dll file, so I can no longer access iTunes.  Can I purchase music, movies, etc. directly to my iPad, or do I have to repair my laptop and sinc to it?

    Purchase music and Movie from iTune Store (iPad)
    iTune Store>Music/Movies

  • Regarding database tables in which i can write directly

    hi experts,
                      i have to create a database table in which i can write directly in to the table with out using update statement,what sud i do for this plz help me......

    Hi Ravi,
    If you mean you need to directly update values on the screen, SE11 has a menu for the table maintenance generator. In there you can generate screens and everything needed for your table to allow entry with or without transports. You then capture the data through transaction SM30 or SM31.
    Cheers
    Wayne

Maybe you are looking for

  • Learning to make AND edit GIF's

    **I am re-posting this since I was informed that I had placed it in the wrong forum area.** Hi! New here and this is my first post, so go easy on me. I am hopefully in the correct forum for this. I have PS 7.0, OS is W2K Pro utilizing an Intel P4 2.5

  • (ES4) How to create a flowable form that does not overlap when pushed to a new 2nd page

    I have a form that involves text insertion boxes, plain text, and checkboxes.  I successfully made my text insertion boxes a flowing expandable layout, but once it gets too big and it has to push the subforms below it onto a 2nd page, all that inform

  • Characteristics missing in EasyDMS?

    Hi all, First time poster. I have a troubleshooting question regarding EasyDMS. I'm currently setting up some test document types for training purposes and I'm having trouble understanding why EasyDMS isn't showing the characteristics that I have set

  • Disable text from my I phone to iMac , please help

    Can anyone explain How to disable my i phone text messages from popping up in messenger? I jus installed Yosemite last night ands not aware of this feature, thanks Ed

  • [10.1.2] Protected Mode causing 100% CPU Usage/Extra Processes on Win XP 32-bit?

    Hello, I'm not 100% sure if the two are related, but I have a client who was seeing 100% CPU usage using Adobe Acrobat Reader X 10.1.2 on Windows XP 32-bit and Firefox 11. The acrord32.exe process would hang around after closing the main window and e